XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
846
IsoTime2Num()
This function returns the number of milliseconds since the
epoch,
given an
[ISO-8601]
time string.
Syntax
IsoTime2Num(d1)
Parameters
d1
is a canonical time string in one of the following formats:
HH[MM[SS[.FFF][z]]]
HH[MM[SS[.FFF][+HH[MM]]]]
HH[MM[SS[.FFF][-HH[MM]]]]
HH[:MM[:SS[.FFF][z]]]
HH[:MM[:SS[.FFF][-HH[:MM]]]]
HH[:MM[:SS[.FFF][+HH[:MM]]]]
or, is an ISO-8601 date-time string — the concatenation of an ISO-8601 date string with an ISO-8601 time
string, separated by the character T, as in:
1997-07-16T20:20:20
Returns
The number of milliseconds from the
epoch
or null if its parameter is null.
If the time string does not include a timezone, the current timezone is used.
If the given time is not in a valid format, the function returns 0.
Examples
Calling IsoTime2Num() as follows …
IsoTime2Num("00:00:00Z")
IsoTime2Num("13")
IsoTime2Num("13:13:13")
IsoTime2Num("19111111T131313+01")
Returns
1
64800001 to a user in Boston
76393001 to a user in California
43993001
See Also
IsoDate2Num()
and
Num2Time()
Home Index Bookmark Pages
Pages: Home Index All Pages