hours-from-dateTime($arg)
The hours-from-dateTime($arg)
function returns the hours component of an xs:dateTime
provided by the argument.
Arguments
Argument | Type |
---|---|
$arg | xs:dateTime |
Return value | xs:integer |
Examples
hours-from-dateTime(xs:dateTime("2013-11-01T08:30:00-05:00")) | → | 8 |
hours-from-dateTime(xs:dateTime("2013-11-01T22:30:00-05:00")) | → | 22 |