1 ###########################################################################
3 # This file is auto-generated by the Perl DateTime Suite locale
4 # generator (0.05). This code generator comes with the
5 # DateTime::Locale distribution in the tools/ directory, and is called
8 # This file as generated from the CLDR XML locale data. See the
9 # LICENSE.cldr file included in this distribution for license details.
11 # This file was generated from the source file zh_Hant.xml
12 # The source file version number was 1.141, generated on
13 # 2009/06/22 12:56:45.
15 # Do not edit this file directly.
17 ###########################################################################
19 package DateTime::Locale::zh_Hant;
25 use base 'DateTime::Locale::zh';
27 sub cldr_version { return "1\.7\.1" }
30 my $date_format_medium = "yyyy\/M\/d";
31 sub date_format_medium { return $date_format_medium }
35 my $date_format_short = "yy\/M\/d";
36 sub date_format_short { return $date_format_short }
40 my $day_format_abbreviated = [ "週一", "週二", "週三", "週四", "週五", "週六", "週日" ];
41 sub day_format_abbreviated { return $day_format_abbreviated }
44 sub day_format_narrow { $_[0]->day_format_abbreviated() }
47 sub day_stand_alone_abbreviated { $_[0]->day_format_abbreviated() }
50 sub era_abbreviated { $_[0]->era_wide() }
53 my $era_wide = [ "西元前", "西元" ];
54 sub era_wide { return $era_wide }
57 my $first_day_of_week = "1";
58 sub first_day_of_week { return $first_day_of_week }
62 sub month_format_narrow { $_[0]->month_stand_alone_narrow() }
65 my $month_stand_alone_abbreviated = [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ];
66 sub month_stand_alone_abbreviated { return $month_stand_alone_abbreviated }
69 my $month_stand_alone_narrow = [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ];
70 sub month_stand_alone_narrow { return $month_stand_alone_narrow }
73 sub quarter_format_abbreviated { $_[0]->quarter_format_wide() }
76 my $quarter_format_wide = [ "第1季", "第2季", "第3季", "第4季" ];
77 sub quarter_format_wide { return $quarter_format_wide }
80 sub quarter_stand_alone_wide { $_[0]->quarter_format_wide() }
83 my $time_format_full = "zzzzah時mm分ss秒";
84 sub time_format_full { return $time_format_full }
88 my $time_format_long = "zah時mm分ss秒";
89 sub time_format_long { return $time_format_long }
93 my $time_format_medium = "ah\:mm\:ss";
94 sub time_format_medium { return $time_format_medium }
98 my $_format_for_Ed = "d日\(E\)";
99 sub _format_for_Ed { return $_format_for_Ed }
103 my $_format_for_H = "H時";
104 sub _format_for_H { return $_format_for_H }
108 my $_format_for_HHmm = "H\:mm";
109 sub _format_for_HHmm { return $_format_for_HHmm }
113 my $_format_for_HHmmss = "H\:mm\:ss";
114 sub _format_for_HHmmss { return $_format_for_HHmmss }
118 my $_format_for_MEd = "M\-d(E)";
119 sub _format_for_MEd { return $_format_for_MEd }
123 my $_format_for_MMMMEd = "MMMMd日\(E\)";
124 sub _format_for_MMMMEd { return $_format_for_MMMMEd }
128 my $_format_for_MMdd = "MM\/dd";
129 sub _format_for_MMdd { return $_format_for_MMdd }
133 my $_format_for_Md = "M\/d";
134 sub _format_for_Md { return $_format_for_Md }
138 my $_format_for_yM = "yyyy\/M";
139 sub _format_for_yM { return $_format_for_yM }
143 my $_format_for_yMEd = "yyyy\/M\/d(EEE)";
144 sub _format_for_yMEd { return $_format_for_yMEd }
148 my $_format_for_yMMM = "y年M月";
149 sub _format_for_yMMM { return $_format_for_yMMM }
153 my $_format_for_yMMMEd = "y年M月d日EEE";
154 sub _format_for_yMMMEd { return $_format_for_yMMMEd }
158 my $_format_for_yMMMM = "y年M月";
159 sub _format_for_yMMMM { return $_format_for_yMMMM }
163 my $_format_for_yyMM = "yyyy\/MM";
164 sub _format_for_yyMM { return $_format_for_yyMM }
168 my $_available_formats =
173 "HHmmss" => "H\:mm\:ss",
175 "MMMMEd" => "MMMMd日\(E\)",
179 "yMEd" => "yyyy\/M\/d(EEE)",
181 "yMMMEd" => "y年M月d日EEE",
185 sub _available_formats { return $_available_formats }
199 DateTime::Locale::zh_Hant
205 my $dt = DateTime->now( locale => 'zh_Hant' );
206 print $dt->month_name();
210 This is the DateTime locale package for Chinese Traditional Han.
214 This locale inherits from the L<DateTime::Locale::zh> locale.
216 It contains the following data.
230 =head3 Abbreviated (format)
240 =head3 Narrow (format)
250 =head3 Wide (stand-alone)
260 =head3 Abbreviated (stand-alone)
270 =head3 Narrow (stand-alone)
297 =head3 Abbreviated (format)
312 =head3 Narrow (format)
327 =head3 Wide (stand-alone)
342 =head3 Abbreviated (stand-alone)
357 =head3 Narrow (stand-alone)
381 =head3 Abbreviated (format)
388 =head3 Narrow (format)
395 =head3 Wide (stand-alone)
402 =head3 Abbreviated (stand-alone)
409 =head3 Narrow (stand-alone)
437 2008-02-05T18:30:30 = 2008年2月5日星期二
438 1995-12-22T09:05:02 = 1995年12月22日星期五
439 -0010-09-15T04:44:23 = -10年9月15日星期六
443 2008-02-05T18:30:30 = 2008年2月5日
444 1995-12-22T09:05:02 = 1995年12月22日
445 -0010-09-15T04:44:23 = -10年9月15日
449 2008-02-05T18:30:30 = 2008/2/5
450 1995-12-22T09:05:02 = 1995/12/22
451 -0010-09-15T04:44:23 = -010/9/15
455 2008-02-05T18:30:30 = 08/2/5
456 1995-12-22T09:05:02 = 95/12/22
457 -0010-09-15T04:44:23 = 10/9/15
461 2008-02-05T18:30:30 = 2008/2/5
462 1995-12-22T09:05:02 = 1995/12/22
463 -0010-09-15T04:44:23 = -010/9/15
469 2008-02-05T18:30:30 = UTC下午6時30分30秒
470 1995-12-22T09:05:02 = UTC上午9時05分02秒
471 -0010-09-15T04:44:23 = UTC上午4時44分23秒
475 2008-02-05T18:30:30 = UTC下午6時30分30秒
476 1995-12-22T09:05:02 = UTC上午9時05分02秒
477 -0010-09-15T04:44:23 = UTC上午4時44分23秒
481 2008-02-05T18:30:30 = 下午6:30:30
482 1995-12-22T09:05:02 = 上午9:05:02
483 -0010-09-15T04:44:23 = 上午4:44:23
487 2008-02-05T18:30:30 = 下午6:30
488 1995-12-22T09:05:02 = 上午9:05
489 -0010-09-15T04:44:23 = 上午4:44
493 2008-02-05T18:30:30 = 下午6:30:30
494 1995-12-22T09:05:02 = 上午9:05:02
495 -0010-09-15T04:44:23 = 上午4:44:23
497 =head2 Datetime Formats
501 2008-02-05T18:30:30 = 2008年2月5日星期二UTC下午6時30分30秒
502 1995-12-22T09:05:02 = 1995年12月22日星期五UTC上午9時05分02秒
503 -0010-09-15T04:44:23 = -10年9月15日星期六UTC上午4時44分23秒
507 2008-02-05T18:30:30 = 2008年2月5日UTC下午6時30分30秒
508 1995-12-22T09:05:02 = 1995年12月22日UTC上午9時05分02秒
509 -0010-09-15T04:44:23 = -10年9月15日UTC上午4時44分23秒
513 2008-02-05T18:30:30 = 2008/2/5下午6:30:30
514 1995-12-22T09:05:02 = 1995/12/22上午9:05:02
515 -0010-09-15T04:44:23 = -010/9/15上午4:44:23
519 2008-02-05T18:30:30 = 08/2/5下午6:30
520 1995-12-22T09:05:02 = 95/12/22上午9:05
521 -0010-09-15T04:44:23 = 10/9/15上午4:44
525 2008-02-05T18:30:30 = 2008/2/5下午6:30:30
526 1995-12-22T09:05:02 = 1995/12/22上午9:05:02
527 -0010-09-15T04:44:23 = -010/9/15上午4:44:23
529 =head2 Available Formats
533 2008-02-05T18:30:30 = 5 週二
534 1995-12-22T09:05:02 = 22 週五
535 -0010-09-15T04:44:23 = 15 週六
539 2008-02-05T18:30:30 = 5日(週二)
540 1995-12-22T09:05:02 = 22日(週五)
541 -0010-09-15T04:44:23 = 15日(週六)
545 2008-02-05T18:30:30 = 18時
546 1995-12-22T09:05:02 = 9時
547 -0010-09-15T04:44:23 = 4時
551 2008-02-05T18:30:30 = 18:30
552 1995-12-22T09:05:02 = 9:05
553 -0010-09-15T04:44:23 = 4:44
555 =head3 HHmmss (H:mm:ss)
557 2008-02-05T18:30:30 = 18:30:30
558 1995-12-22T09:05:02 = 9:05:02
559 -0010-09-15T04:44:23 = 4:44:23
563 2008-02-05T18:30:30 = 18:30
564 1995-12-22T09:05:02 = 9:05
565 -0010-09-15T04:44:23 = 4:44
569 2008-02-05T18:30:30 = 18:30:30
570 1995-12-22T09:05:02 = 9:05:02
571 -0010-09-15T04:44:23 = 4:44:23
575 2008-02-05T18:30:30 = 2
576 1995-12-22T09:05:02 = 12
577 -0010-09-15T04:44:23 = 9
581 2008-02-05T18:30:30 = 2-5(週二)
582 1995-12-22T09:05:02 = 12-22(週五)
583 -0010-09-15T04:44:23 = 9-15(週六)
587 2008-02-05T18:30:30 = 2月
588 1995-12-22T09:05:02 = 12月
589 -0010-09-15T04:44:23 = 9月
591 =head3 MMMEd (MMMd日E)
593 2008-02-05T18:30:30 = 2月5日週二
594 1995-12-22T09:05:02 = 12月22日週五
595 -0010-09-15T04:44:23 = 9月15日週六
597 =head3 MMMMEd (MMMMd日(E))
599 2008-02-05T18:30:30 = 2月5日(週二)
600 1995-12-22T09:05:02 = 12月22日(週五)
601 -0010-09-15T04:44:23 = 9月15日(週六)
603 =head3 MMMMd (MMMMd日)
605 2008-02-05T18:30:30 = 2月5日
606 1995-12-22T09:05:02 = 12月22日
607 -0010-09-15T04:44:23 = 9月15日
609 =head3 MMMMdd (MMMMdd日)
611 2008-02-05T18:30:30 = 2月05日
612 1995-12-22T09:05:02 = 12月22日
613 -0010-09-15T04:44:23 = 9月15日
617 2008-02-05T18:30:30 = 2月5日
618 1995-12-22T09:05:02 = 12月22日
619 -0010-09-15T04:44:23 = 9月15日
623 2008-02-05T18:30:30 = 02/05
624 1995-12-22T09:05:02 = 12/22
625 -0010-09-15T04:44:23 = 09/15
629 2008-02-05T18:30:30 = 2/5
630 1995-12-22T09:05:02 = 12/22
631 -0010-09-15T04:44:23 = 9/15
635 2008-02-05T18:30:30 = 5日
636 1995-12-22T09:05:02 = 22日
637 -0010-09-15T04:44:23 = 15日
641 2008-02-05T18:30:30 = 下午6:30
642 1995-12-22T09:05:02 = 上午9:05
643 -0010-09-15T04:44:23 = 上午4:44
645 =head3 hms (ah:mm:ss)
647 2008-02-05T18:30:30 = 下午6:30:30
648 1995-12-22T09:05:02 = 上午9:05:02
649 -0010-09-15T04:44:23 = 上午4:44:23
653 2008-02-05T18:30:30 = 30:30
654 1995-12-22T09:05:02 = 05:02
655 -0010-09-15T04:44:23 = 44:23
659 2008-02-05T18:30:30 = 2008年
660 1995-12-22T09:05:02 = 1995年
661 -0010-09-15T04:44:23 = -10年
665 2008-02-05T18:30:30 = 2008/2
666 1995-12-22T09:05:02 = 1995/12
667 -0010-09-15T04:44:23 = -010/9
669 =head3 yMEd (yyyy/M/d(EEE))
671 2008-02-05T18:30:30 = 2008/2/5(週二)
672 1995-12-22T09:05:02 = 1995/12/22(週五)
673 -0010-09-15T04:44:23 = -010/9/15(週六)
677 2008-02-05T18:30:30 = 2008年2月
678 1995-12-22T09:05:02 = 1995年12月
679 -0010-09-15T04:44:23 = -10年9月
681 =head3 yMMMEd (y年M月d日EEE)
683 2008-02-05T18:30:30 = 2008年2月5日週二
684 1995-12-22T09:05:02 = 1995年12月22日週五
685 -0010-09-15T04:44:23 = -10年9月15日週六
689 2008-02-05T18:30:30 = 2008年2月
690 1995-12-22T09:05:02 = 1995年12月
691 -0010-09-15T04:44:23 = -10年9月
693 =head3 yMMMd (y年MMMd日)
695 2008-02-05T18:30:30 = 2008年2月5日
696 1995-12-22T09:05:02 = 1995年12月22日
697 -0010-09-15T04:44:23 = -10年9月15日
701 2008-02-05T18:30:30 = 2008年第1季
702 1995-12-22T09:05:02 = 1995年第4季
703 -0010-09-15T04:44:23 = -10年第3季
707 2008-02-05T18:30:30 = 2008年第1季
708 1995-12-22T09:05:02 = 1995年第4季
709 -0010-09-15T04:44:23 = -10年第3季
711 =head3 yyMM (yyyy/MM)
713 2008-02-05T18:30:30 = 2008/02
714 1995-12-22T09:05:02 = 1995/12
715 -0010-09-15T04:44:23 = -010/09
717 =head3 yyMMM (yy年MMM)
719 2008-02-05T18:30:30 = 08年2月
720 1995-12-22T09:05:02 = 95年12月
721 -0010-09-15T04:44:23 = 10年9月
725 2008-02-05T18:30:30 = 08年第1季度
726 1995-12-22T09:05:02 = 95年第4季度
727 -0010-09-15T04:44:23 = 10年第3季度
731 2008-02-05T18:30:30 = 2008年
732 1995-12-22T09:05:02 = 1995年
733 -0010-09-15T04:44:23 = -10年
737 2008-02-05T18:30:30 = 2008年2月
738 1995-12-22T09:05:02 = 1995年12月
739 -0010-09-15T04:44:23 = -10年9月
741 =head3 yyyyMMMM (y年MMMM)
743 2008-02-05T18:30:30 = 2008年2月
744 1995-12-22T09:05:02 = 1995年12月
745 -0010-09-15T04:44:23 = -10年9月
749 =head3 Prefers 24 hour time?
753 =head3 Local first day of the week
760 See L<DateTime::Locale>.
764 Dave Rolsky <autarch@urth.org>
768 Copyright (c) 2008 David Rolsky. All rights reserved. This program is
769 free software; you can redistribute it and/or modify it under the same
770 terms as Perl itself.
772 This module was generated from data provided by the CLDR project, see
773 the LICENSE.cldr in this distribution for details on the CLDR data's