Saxonica.com

fn:hours-from-time

fn:hours-from-time( time? $srcval) → integer?

Function signature

$srcval

xs:time ?

Result

xs:integer ?

Extracts the hours component of a time value. Note that this is from the localized value, not the normalized value: for example if the supplied time value is 01:23:00+05:00 then the result is 1.

XPath 2.0 Specification

Next