Return hours integer value from time argument.
fn:hours-from-time(xs:time? $arg) => xs:integer?
This function returns an integer value between 0 and 23, representing the hours component of the localized value of the argument value. The localized value is the value in its original timezone or without timezone. If the argument is an empty sequence, the empty sequence is returned.
$arg |
argument value of type |
---|
This function call returns the hours component of the current time:
hours-from-time(current-time())
This function call returns the hours component of the specified time value which is 1:
hours-from-time(xs:time("01:23:00+05:00"))
The following construct(s) refer to this construct: