Icon HourOf

Unit: Internal

Available In: Client and Server Applications

function HourOf(Value: DateTime; UTC: Boolean=False): Integer

The HourOf function returns the hour number of the input parameter in local or UTC time. The return value is an Integer value between 0 (midnight) and 23 (11:00 PM).

Examples

X := HourOf(Time);  // X is 12 (assuming a time of 12:10 PM)
Image