Extracts the seconds from $dateTime-var.
If the value of $dateTime-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-seconds-from-dateTime(xs:dateTime? $dateTime-var) —> xs:xs:decimal?
Returns the seconds as an decimal from $dateTime-var.
When you invoke the following query:
<seconds>{xf:get-seconds-from-dateTime("2002-08-30T22:21:01")}</seconds>
The preceding query generates the following result:
<seconds>1</seconds>
W3C get-seconds-from-dateTime function description.
W3C dateTime data type description.