XFA Specification
Chapter 23, FormCalc Specification
Date And Time Built-in Functions
848
LocalTimeFmt()
This function returns a localized time format, given a time format style.
Syntax
LocalTimeFmt([n1[, k1]])
Parameters
n1
is an integer identifying the time format style as follows:
n1
0
1
2
3
4
Style requested for the localized time format
Locale-specific default style
Locale-specific short style
Locale-specific medium style
Locale-specific long style
Locale-specific full style
If n1 is omitted, the default style value 0 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
is used.
Returns
The localized time format or null if any of its parameters are null.
If the given format style is invalid, the function returns default-style localized time format.
The time picture clauses returned by this function are not usable in the functions
Time2Num()
and
Num2Time()
.
Examples
Calling LocalTimeFmt() as follows …
LocalTimeFmt(1, "de_DE")
LocalTimeFmt(2, "fr_CA")
LocalTimeFmt(3, "de_DE")
LocalTimeFmt(4, "es_ES")
Returns
"HH:mm"
"HH:mm:ss"
"HH:mm:ss z"
"hhHmm'ss" z".
See Also
TimeFmt()
Home Index Bookmark Pages
Pages: Home Index All Pages