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.
xf:get-minutes-from-time(xs:time? $time-var) —> xs:integer?
Returns the minutes as an integer from $time-var.
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>
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>
W3C get-minutes-from-time function description.
W3C time data type description.