xf:get-minutes-from-time

Extracts the minutes from $time-var.

If the value of $time-var is the empty sequence, the empty sequence is returned. The empty sequence is a sequence containing zero items (), which is similar to null in SQL.

Signatures

xf:get-minutes-from-time(xs:time? $time-var) —> xs:integer?

Arguments

Data Type
Argument
Description

xs:time?

$time-var

Contains a representation of time.

Returns

Returns the minutes as an integer from $time-var.

Examples

Simple

The following is a simple example using the get-minutes-from-time function:

<minutes>{xf:get-minutes-from-time("22:21:01")}</minutes> 

The preceding query generates the following result:

<minutes>21</minutes> 

Timezone

The following example uses the get-minutes-from-time function with a timezone:

<minutes>{xf:get-minutes-from-time("14:21:01-05:00")}</minutes> 

The preceding query generates the following result:

<minutes>21</minutes> 

Related Topics

W3C get-minutes-from-time function description.

W3C time data type description.