Loading TOC...

fn.timezoneFromTime

fn.timezoneFromTime(
   $arg as String?
) as xs.dayTimeDuration?

Summary

Returns the timezone component of $arg if any. If $arg has a timezone component, then the result is an xs:dayTimeDuration that indicates deviation from UTC; its value may range from +14:00 to -14:00 hours, both inclusive. Otherwise, the result is the empty sequence.

If $arg is the empty sequence, returns the empty sequence.

Parameters
$arg The time whose timezone component will be returned.

Example

fn.timezoneFromTime(xs.time("13:20:00-05:00"))
=> xs.dayTimeDuration whose value is -PT5H

Example

fn.timezoneFromTime(xs.time("13:20:00"))
=> ()

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy