XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
850
Num2GMTime()
This function returns a GMT time string, given a number of milliseconds from the
epoch.
Syntax
Num2GMTime(n1 [,f1 [, k1]])
Parameters
n1
is the number of milliseconds.
f1
is a time picture clause, as
defined
above.
If f1 is omitted, the
default time picture clause
is used.
k1
is a locale identifier string, as described in
“Specifying a Locale (Locale Identifier String)” on page 828.
If k1 is omitted, the
prevailing locale
Returns
The GMT time string or null if any of its parameters are null.
The formatted time is in the format given in f1, governed by the locale given in k1.
The locale is used to format any timezone names.
If the given time is invalid, the function returns an empty string.
Examples
Num2GMTime(1, "HH:MM:SS")
returns "00:00:00".
Num2GMTime(65593001, "HH:MM:SS Z")
returns "18:13:13 GMT".
Num2GMTime(43993001, TimeFmt(4, "de_CH"), "de_CH")
returns "12.13 Uhr GMT".
See Also
Num2Time()