minutes-from-time function

The fn:minutes-from-time function returns the minutes component of an xs:time value.

Syntax

Read syntax diagramSkip visual syntax diagramfn:minutes-from-time( time-value)
time-value
The time value from which the minutes component is to be extracted.

time-value is of type xs:time, or is an empty sequence.

Returned value

If time-value is of type xs:time, the returned value is of type xs:integer, and the value is between 0 and 59, inclusive. The value is the minutes component of time-value.

If time-value is an empty sequence, the returned value is an empty sequence.

Example

The following function returns the minutes component of the time value for 8:59 am in the UTC-8 time zone.

fn:minutes-from-time(xs:time("08:59:00-08:00"))

The returned value is 59.