Purpose
Retrieves the hour component of a Time value as an integer (0-23). You can call this function from the MapBasic window in MapInfo Pro.
Syntax
Hour ( Time )
Return Value
SmallInt
Example
Copy this example into the MapBasic window for a demonstration of this function.
dim Z as time
dim iHour as integer
Z = CurDateTime()
iHour = Hour(Z)
Print iHour
See Also:
Minute() function, Second() function