{ Frameless }

hours-from-dateTime($arg)

The hours-from-dateTime($arg) function returns the hours component of an xs:dateTime provided by the argument.

Arguments

ArgumentType
$argxs:dateTime
Return valuexs: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