How to extract hour from time field

Eg: time_of_measurement = fields.Time(‘Time At Measurement’.
Sir, how to extract hour from this given Time field and display as an output.

You should make a fields.Function that returns the hour part of the time.