1DateTime::Locale::zh(3)User Contributed Perl DocumentatioDnateTime::Locale::zh(3)
2
3
4
6 DateTime::Locale::zh
7
9 use DateTime;
10
11 my $dt = DateTime->now( locale => 'zh' );
12 print $dt->month_name();
13
15 This is the DateTime locale package for Chinese.
16
18 This locale inherits from the DateTime::Locale::root locale.
19
20 It contains the following data.
21
22 Days
23 Wide (format)
24
25 XXX
26 XXX
27 XXX
28 XXX
29 XXX
30 XXX
31 XXX
32
33 Abbreviated (format)
34
35 XX
36 XX
37 XX
38 XX
39 XX
40 XX
41 XX
42
43 Narrow (format)
44
45 X
46 X
47 X
48 X
49 X
50 X
51 X
52
53 Wide (stand-alone)
54
55 XXX
56 XXX
57 XXX
58 XXX
59 XXX
60 XXX
61 XXX
62
63 Abbreviated (stand-alone)
64
65 XX
66 XX
67 XX
68 XX
69 XX
70 XX
71 XX
72
73 Narrow (stand-alone)
74
75 X
76 X
77 X
78 X
79 X
80 X
81 X
82
83 Months
84 Wide (format)
85
86 1X
87 2X
88 3X
89 4X
90 5X
91 6X
92 7X
93 8X
94 9X
95 10X
96 11X
97 12X
98
99 Abbreviated (format)
100
101 1X
102 2X
103 3X
104 4X
105 5X
106 6X
107 7X
108 8X
109 9X
110 10X
111 11X
112 12X
113
114 Narrow (format)
115
116 1X
117 2X
118 3X
119 4X
120 5X
121 6X
122 7X
123 8X
124 9X
125 10X
126 11X
127 12X
128
129 Wide (stand-alone)
130
131 XX
132 XX
133 XX
134 XX
135 XX
136 XX
137 XX
138 XX
139 XX
140 XX
141 XXX
142 XXX
143
144 Abbreviated (stand-alone)
145
146 XX
147 XX
148 XX
149 XX
150 XX
151 XX
152 XX
153 XX
154 XX
155 XX
156 XXX
157 XXX
158
159 Narrow (stand-alone)
160
161 1X
162 2X
163 3X
164 4X
165 5X
166 6X
167 7X
168 8X
169 9X
170 10X
171 11X
172 12X
173
174 Quarters
175 Wide (format)
176
177 X1XX
178 X2XX
179 X3XX
180 X4XX
181
182 Abbreviated (format)
183
184 1X
185 2X
186 3X
187 4X
188
189 Narrow (format)
190
191 1
192 2
193 3
194 4
195
196 Wide (stand-alone)
197
198 X1XX
199 X2XX
200 X3XX
201 X4XX
202
203 Abbreviated (stand-alone)
204
205 1X
206 2X
207 3X
208 4X
209
210 Narrow (stand-alone)
211
212 1
213 2
214 3
215 4
216
217 Eras
218 Wide
219
220 XXX
221 XX
222
223 Abbreviated
224
225 XXX
226 XX
227
228 Narrow
229
230 XXX
231 XX
232
233 Date Formats
234 Full
235
236 2008-02-05T18:30:30 = 2008X2X5XXXX
237 1995-12-22T09:05:02 = 1995X12X22XXXX
238 -0010-09-15T04:44:23 = -10X9X15XXXX
239
240 Long
241
242 2008-02-05T18:30:30 = 2008X2X5X
243 1995-12-22T09:05:02 = 1995X12X22X
244 -0010-09-15T04:44:23 = -10X9X15X
245
246 Medium
247
248 2008-02-05T18:30:30 = 2008-2-5
249 1995-12-22T09:05:02 = 1995-12-22
250 -0010-09-15T04:44:23 = -010-9-15
251
252 Short
253
254 2008-02-05T18:30:30 = 08-2-5
255 1995-12-22T09:05:02 = 95-12-22
256 -0010-09-15T04:44:23 = -10-9-15
257
258 Default
259
260 2008-02-05T18:30:30 = 2008-2-5
261 1995-12-22T09:05:02 = 1995-12-22
262 -0010-09-15T04:44:23 = -010-9-15
263
264 Time Formats
265 Full
266
267 2008-02-05T18:30:30 = UTCXX6X30X30X
268 1995-12-22T09:05:02 = UTCXX9X05X02X
269 -0010-09-15T04:44:23 = UTCXX4X44X23X
270
271 Long
272
273 2008-02-05T18:30:30 = UTCXX6X30X30X
274 1995-12-22T09:05:02 = UTCXX9X05X02X
275 -0010-09-15T04:44:23 = UTCXX4X44X23X
276
277 Medium
278
279 2008-02-05T18:30:30 = XX06:30:30
280 1995-12-22T09:05:02 = XX09:05:02
281 -0010-09-15T04:44:23 = XX04:44:23
282
283 Short
284
285 2008-02-05T18:30:30 = XX6:30
286 1995-12-22T09:05:02 = XX9:05
287 -0010-09-15T04:44:23 = XX4:44
288
289 Default
290
291 2008-02-05T18:30:30 = XX06:30:30
292 1995-12-22T09:05:02 = XX09:05:02
293 -0010-09-15T04:44:23 = XX04:44:23
294
295 Datetime Formats
296 Full
297
298 2008-02-05T18:30:30 = 2008X2X5XXXXUTCXX6X30X30X
299 1995-12-22T09:05:02 = 1995X12X22XXXXUTCXX9X05X02X
300 -0010-09-15T04:44:23 = -10X9X15XXXXUTCXX4X44X23X
301
302 Long
303
304 2008-02-05T18:30:30 = 2008X2X5XUTCXX6X30X30X
305 1995-12-22T09:05:02 = 1995X12X22XUTCXX9X05X02X
306 -0010-09-15T04:44:23 = -10X9X15XUTCXX4X44X23X
307
308 Medium
309
310 2008-02-05T18:30:30 = 2008-2-5XX06:30:30
311 1995-12-22T09:05:02 = 1995-12-22XX09:05:02
312 -0010-09-15T04:44:23 = -010-9-15XX04:44:23
313
314 Short
315
316 2008-02-05T18:30:30 = 08-2-5XX6:30
317 1995-12-22T09:05:02 = 95-12-22XX9:05
318 -0010-09-15T04:44:23 = -10-9-15XX4:44
319
320 Default
321
322 2008-02-05T18:30:30 = 2008-2-5XX06:30:30
323 1995-12-22T09:05:02 = 1995-12-22XX09:05:02
324 -0010-09-15T04:44:23 = -010-9-15XX04:44:23
325
326 Available Formats
327 d (dX)
328
329 2008-02-05T18:30:30 = 5X
330 1995-12-22T09:05:02 = 22X
331 -0010-09-15T04:44:23 = 15X
332
333 Ed (dXE)
334
335 2008-02-05T18:30:30 = 5XXX
336 1995-12-22T09:05:02 = 22XXX
337 -0010-09-15T04:44:23 = 15XXX
338
339 EEEd (d EEE)
340
341 2008-02-05T18:30:30 = 5 XX
342 1995-12-22T09:05:02 = 22 XX
343 -0010-09-15T04:44:23 = 15 XX
344
345 H (HX)
346
347 2008-02-05T18:30:30 = 18X
348 1995-12-22T09:05:02 = 9X
349 -0010-09-15T04:44:23 = 4X
350
351 HHmmss (HH:mm:ss)
352
353 2008-02-05T18:30:30 = 18:30:30
354 1995-12-22T09:05:02 = 09:05:02
355 -0010-09-15T04:44:23 = 04:44:23
356
357 Hm (H:mm)
358
359 2008-02-05T18:30:30 = 18:30
360 1995-12-22T09:05:02 = 9:05
361 -0010-09-15T04:44:23 = 4:44
362
363 hm (ah:mm)
364
365 2008-02-05T18:30:30 = XX6:30
366 1995-12-22T09:05:02 = XX9:05
367 -0010-09-15T04:44:23 = XX4:44
368
369 Hms (H:mm:ss)
370
371 2008-02-05T18:30:30 = 18:30:30
372 1995-12-22T09:05:02 = 9:05:02
373 -0010-09-15T04:44:23 = 4:44:23
374
375 hms (ah:mm:ss)
376
377 2008-02-05T18:30:30 = XX6:30:30
378 1995-12-22T09:05:02 = XX9:05:02
379 -0010-09-15T04:44:23 = XX4:44:23
380
381 M (L)
382
383 2008-02-05T18:30:30 = 2
384 1995-12-22T09:05:02 = 12
385 -0010-09-15T04:44:23 = 9
386
387 Md (M-d)
388
389 2008-02-05T18:30:30 = 2-5
390 1995-12-22T09:05:02 = 12-22
391 -0010-09-15T04:44:23 = 9-15
392
393 MEd (M-dE)
394
395 2008-02-05T18:30:30 = 2-5XX
396 1995-12-22T09:05:02 = 12-22XX
397 -0010-09-15T04:44:23 = 9-15XX
398
399 MMdd (MM-dd)
400
401 2008-02-05T18:30:30 = 02-05
402 1995-12-22T09:05:02 = 12-22
403 -0010-09-15T04:44:23 = 09-15
404
405 MMM (LLL)
406
407 2008-02-05T18:30:30 = XX
408 1995-12-22T09:05:02 = XXX
409 -0010-09-15T04:44:23 = XX
410
411 MMMd (MMMdX)
412
413 2008-02-05T18:30:30 = 2X5X
414 1995-12-22T09:05:02 = 12X22X
415 -0010-09-15T04:44:23 = 9X15X
416
417 MMMEd (MMMdXE)
418
419 2008-02-05T18:30:30 = 2X5XXX
420 1995-12-22T09:05:02 = 12X22XXX
421 -0010-09-15T04:44:23 = 9X15XXX
422
423 MMMMd (MMMMdX)
424
425 2008-02-05T18:30:30 = 2X5X
426 1995-12-22T09:05:02 = 12X22X
427 -0010-09-15T04:44:23 = 9X15X
428
429 MMMMdd (MMMMddX)
430
431 2008-02-05T18:30:30 = 2X05X
432 1995-12-22T09:05:02 = 12X22X
433 -0010-09-15T04:44:23 = 9X15X
434
435 MMMMEd (MMMMdXE)
436
437 2008-02-05T18:30:30 = 2X5XXX
438 1995-12-22T09:05:02 = 12X22XXX
439 -0010-09-15T04:44:23 = 9X15XXX
440
441 ms (mm:ss)
442
443 2008-02-05T18:30:30 = 30:30
444 1995-12-22T09:05:02 = 05:02
445 -0010-09-15T04:44:23 = 44:23
446
447 y (yX)
448
449 2008-02-05T18:30:30 = 2008X
450 1995-12-22T09:05:02 = 1995X
451 -0010-09-15T04:44:23 = -10X
452
453 yM (yyyy-M)
454
455 2008-02-05T18:30:30 = 2008-2
456 1995-12-22T09:05:02 = 1995-12
457 -0010-09-15T04:44:23 = -010-9
458
459 yMEd (yXMXdXXE)
460
461 2008-02-05T18:30:30 = 2008X2X5XXXX
462 1995-12-22T09:05:02 = 1995X12X22XXXX
463 -0010-09-15T04:44:23 = -10X9X15XXXX
464
465 yMMM (yXMMM)
466
467 2008-02-05T18:30:30 = 2008X2X
468 1995-12-22T09:05:02 = 1995X12X
469 -0010-09-15T04:44:23 = -10X9X
470
471 yMMMd (yXMMMdX)
472
473 2008-02-05T18:30:30 = 2008X2X5X
474 1995-12-22T09:05:02 = 1995X12X22X
475 -0010-09-15T04:44:23 = -10X9X15X
476
477 yMMMEd (yXMMMdXEEE)
478
479 2008-02-05T18:30:30 = 2008X2X5XXX
480 1995-12-22T09:05:02 = 1995X12X22XXX
481 -0010-09-15T04:44:23 = -10X9X15XXX
482
483 yMMMM (yXMMMM)
484
485 2008-02-05T18:30:30 = 2008X2X
486 1995-12-22T09:05:02 = 1995X12X
487 -0010-09-15T04:44:23 = -10X9X
488
489 yQ (yXQQQ)
490
491 2008-02-05T18:30:30 = 2008X1X
492 1995-12-22T09:05:02 = 1995X4X
493 -0010-09-15T04:44:23 = -10X3X
494
495 yQQQ (yXQQQ)
496
497 2008-02-05T18:30:30 = 2008X1X
498 1995-12-22T09:05:02 = 1995X4X
499 -0010-09-15T04:44:23 = -10X3X
500
501 yyMM (yy-MM)
502
503 2008-02-05T18:30:30 = 08-02
504 1995-12-22T09:05:02 = 95-12
505 -0010-09-15T04:44:23 = -10-09
506
507 yyMMM (yyXMMM)
508
509 2008-02-05T18:30:30 = 08X2X
510 1995-12-22T09:05:02 = 95X12X
511 -0010-09-15T04:44:23 = -10X9X
512
513 yyQ (yyXXQXX)
514
515 2008-02-05T18:30:30 = 08XX1XX
516 1995-12-22T09:05:02 = 95XX4XX
517 -0010-09-15T04:44:23 = -10XX3XX
518
519 yyyy (yX)
520
521 2008-02-05T18:30:30 = 2008X
522 1995-12-22T09:05:02 = 1995X
523 -0010-09-15T04:44:23 = -10X
524
525 yyyyM (yXMX)
526
527 2008-02-05T18:30:30 = 2008X2X
528 1995-12-22T09:05:02 = 1995X12X
529 -0010-09-15T04:44:23 = -10X9X
530
531 yyyyMMMM (yXMMMM)
532
533 2008-02-05T18:30:30 = 2008X2X
534 1995-12-22T09:05:02 = 1995X12X
535 -0010-09-15T04:44:23 = -10X9X
536
537 Miscellaneous
538 Prefers 24 hour time?
539
540 No
541
542 Local first day of the week
543
544 XXX
545
547 See DateTime::Locale.
548
550 Dave Rolsky <autarch@urth.org>
551
553 Copyright (c) 2008 David Rolsky. All rights reserved. This program is
554 free software; you can redistribute it and/or modify it under the same
555 terms as Perl itself.
556
557 This module was generated from data provided by the CLDR project, see
558 the LICENSE.cldr in this distribution for details on the CLDR data's
559 license.
560
561
562
563perl v5.16.3 2014-06-10 DateTime::Locale::zh(3)