Returns
a GMT time string, given a number of milliseconds from the epoch.
SyntaxNum2GMTime(n [,f [, k ]])
Parameters
Parameter
|
Description
|
n
|
An integer representing the number of milliseconds.
If n is
invalid, the function returns an error.
|
f (Optional)
|
A time format string. If you do not include
a value for f, the function uses the default time
format H:MM:SS A.
|
k (Optional)
|
A locale identifier string that conforms
to the locale naming standards. If you do not include a value for k,
or if k is invalid, the function uses the ambient
locale.
|
The function returns a value of 0 if
any of the following conditions are true:
The format
of the given time does not match the format specified in the function.
Either the locale or time format supplied in the function
is invalid.
Insufficient information is provided to determine
a unique time since the epoch (that is, any information regarding
the time is missing or incomplete.
ExamplesThe
following expressions illustrate using the Num2GMTime function:
Expression
|
Returns
|
Num2GMTime(1, "HH:MM:SS")
|
00:00:00
|
Num2GMTime(65593001, "HH:MM:SS Z")
|
18:13:13 GMT
|
Num2GMTime(43993001, TimeFmt(4, "de_DE"), "de_DE")
|
12.13 Uhr GMT
|
|
|
|