HoursFromTime function

Returns the hours portion of a time.

Namespace

datetime

Input

time(time)

Output

hours(int)

Example

If basetime contains the time 22:30:00, then the following two functions are equivalent, and return the integer value 22.

set-column result datetime:HoursFromTime('22:30:00') set-column result datetime:HoursFromTime(basetime)

 

Created in 2020 by Google Inc.