| 1 | ## | ||||||||||
| 2 | ## Chinese GB2312 tables (GB2312 byte encoding) | ||||||||||
| 3 | ## | ||||||||||
| 4 | |||||||||||
| 5 | package Date::Language::Chinese_GB; | ||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 15 | # ABSTRACT: Chinese localization for Date::Format (GB2312) | ||||||||||
| 16 | |||||||||||
| 17 | 1 | our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); | |||||||||
| 18 | |||||||||||
| 19 | 1 | @DoW = ( | |||||||||
| 20 | "\xd0\xc7\xc6\xda\xc8\xd5", # 星期日 | ||||||||||
| 21 | "\xd0\xc7\xc6\xda\xd2\xbb", # 星期一 | ||||||||||
| 22 | "\xd0\xc7\xc6\xda\xb6\xfe", # 星期二 | ||||||||||
| 23 | "\xd0\xc7\xc6\xda\xc8\xfd", # 星期三 | ||||||||||
| 24 | "\xd0\xc7\xc6\xda\xcb\xc4", # 星期四 | ||||||||||
| 25 | "\xd0\xc7\xc6\xda\xce\xe5", # 星期五 | ||||||||||
| 26 | "\xd0\xc7\xc6\xda\xc1\xf9", # 星期六 | ||||||||||
| 27 | ); | ||||||||||
| 28 | |||||||||||
| 29 | 1 | @MoY = ( | |||||||||
| 30 | "\xd2\xbb\xd4\xc2", # 一月 | ||||||||||
| 31 | "\xb6\xfe\xd4\xc2", # 二月 | ||||||||||
| 32 | "\xc8\xfd\xd4\xc2", # 三月 | ||||||||||
| 33 | "\xcb\xc4\xd4\xc2", # 四月 | ||||||||||
| 34 | "\xce\xe5\xd4\xc2", # 五月 | ||||||||||
| 35 | "\xc1\xf9\xd4\xc2", # 六月 | ||||||||||
| 36 | "\xc6\xdf\xd4\xc2", # 七月 | ||||||||||
| 37 | "\xb0\xcb\xd4\xc2", # 八月 | ||||||||||
| 38 | "\xbe\xc5\xd4\xc2", # 九月 | ||||||||||
| 39 | "\xca\xae\xd4\xc2", # 十月 | ||||||||||
| 40 | "\xca\xae\xd2\xbb\xd4\xc2", # 十一月 | ||||||||||
| 41 | "\xca\xae\xb6\xfe\xd4\xc2", # 十二月 | ||||||||||
| 42 | ); | ||||||||||
| 43 | |||||||||||
| 44 | 1 | @DoWs = map { $_ } @DoW; | |||||||||
| 45 | 1 | @MoYs = map { $_ } @MoY; | |||||||||
| 46 | |||||||||||
| 47 | 1 | @AMPM = ( | |||||||||
| 48 | "\xc9\xcf\xce\xe7", # 上午 | ||||||||||
| 49 | "\xcf\xc2\xce\xe7", # 下午 | ||||||||||
| 50 | ); | ||||||||||
| 51 | |||||||||||
| 52 | 1 | @Dsuf = ("\xc8\xd5") x 31; # 日 | |||||||||
| 53 | |||||||||||
| 54 | 1 | Date::Language::_build_lookups(); | |||||||||
| 55 | |||||||||||
| 56 | # Formatting routines | ||||||||||
| 57 | |||||||||||
| 58 | 1 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 59 | 1 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 60 | 1 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 61 | 1 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 62 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 63 | 0 | ▶ | sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } | ||||||||
|
Subroutine
format_p: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 64 | |||||||||||
| 65 | 0 | ▶ | sub format_o { sprintf("%2d%s",$_[0]->[3],"\xc8\xd5") } # 日 | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 66 | |||||||||||
| 67 | 1 | 1; | |||||||||
| 68 | |||||||||||
| 69 | __END__ | ||||||||||