XFA Specification
Chapter 24, Picture Clause Specification
Picture Clause Reference
921
Examples of Input Parsing
Picture clause
MM/D/YY
MMM D, YYYY
Input value
12/2/99
Jan 10, 1999
Parsed result
1999-12-02
1999-01-10
Examples of Asian Output Formatting and Input Parsing
Japanese Locale
The following table shows formatted results when the prevailing locale is Japanese. The same result is
achieved by enclosing the picture close with a localization designator in the format
date(ja){picture clause}
. (“Locale-Specific
Picture Clauses” on page 908)
Picture clause
gY/M/D
ggY-M-D
YY/MM/DD
'
' ' ' '
Input value
2003-11-03
1989-01-08
1989-11-03
2003-11-03
' '
1989-01-08
Formatted result
H15/11/3
Explanation
Alternate-era style
#1
Alternate-era style
#2
Alternate-era style
#5
Alternate-era style
Alternate-era style
3, ideographic year.
The
pictograph
represents the first
year in the Heisei
impereal era.
Alternate-era style 1
Gregorian calendar
year
'
'
Time Pictures
Symbols used for time picture clauses apply to all locales (“Standard
Symbols”)
or apply primarily to Asian
locales (“Asian
Time Picture Symbols”).
The category of such picture clauses is identified as
time
.
Standard Symbols
The standard picture clause symbols for time are:
Symbol
h
hh
DDD MMM
DD MM
YYY
YY
g
'
'
'
'
' '
'
'
Is the picture symbol for …
1 or 2 digit (1-12) hour of the meridiem (AM/PM), expressed as a 12-hour clock.
2 digit (01-12) hour of the meridiem (AM/PM)), expressed as a 12-hour clock.
DDD
' '
ggg
MMM
YYY
D M
Y
'
'
gg
gg '
' '
1989-12-23
1998-12-10
Home Index Bookmark Pages
Pages: Home Index All Pages