hours-from-time

The hour portion of a time

Description

The fn:hours-from-time function returns the hour portion of an xs:time value, as an integer between 0 and 23 inclusive.

Parameters

Description

arg:time()

Examples

XPath

Results

hours-from-time(xs:time(‘10:30:23’))

10

hours-from-time(xs:time(‘10:30:23-05:00’))

10

See Also