The localization of the Date/Time formats for Calendar should be performed by constructing locale-specific patterns for certain symbols, delimiters and hard-coded strings that are enclosed in single quotes. These symbols are converted into locale specific strings by Communications Express.
For more information on localizing date and time formats in calendar, see Date/Time Formats for Calendar.
Table 9–1 Localizing Date/Time Formats for Calendar
Symbol |
Meaning |
Presentation |
Example |
y |
year |
Number |
1996 |
M |
month in year |
Text&Number |
July & 07 |
d |
day in month |
Number |
10 |
h |
hour in am/pm (1-12) |
Number |
12 |
H |
hour in day (0-23) |
Number |
0 |
m |
minute in hour |
Number |
30 |
s |
second in minute |
Number |
55 |
S |
millisecond |
Number |
978 |
E |
day in week |
Text |
Tuesday |
D |
day in year |
Number |
189 |
F |
day of week in month |
Number |
2 (2nd Wed in July) |
w |
week in year |
Number |
27 |
W |
week in month |
Number |
2 |
a |
am/pm marker |
Text |
PM |
z |
time zone |
Text |
Pacific Standard Time |
” |
escape for text |
Delimiter |
(none) |
” |
single quote |
Literal |
. |
Characters that are displayed in the table above are treated as quoted text. These characters appear in the formatted text even if they are not enclosed within single quotes.
The number of symbol letters you specify also determines the format. For example, if the “zz” pattern results in “PDT,” then the “zzzz” pattern generates “Pacific Daylight Time.” Date/Time Formats for Calendar summarizes these rules.
Table 9–2 Localization Rules
Presentation |
Number of Symbols |
Result |
---|---|---|
Text |
1-3 |
”abbreviated form, if one exists |
Text |
>=4 |
full form |
Number |
minimum number of digits is required |
shorter number are padded with zeros (for year, if the count of ”y’ is 2, then the year is truncated to 2 digits) |
Text & Number |
1-2 |
text form |
Text & Number |
3 |
number form |