| 1 | ## | ||||||||||
| 2 | ## English tables | ||||||||||
| 3 | ## | ||||||||||
| 4 | |||||||||||
| 5 | package Date::Language::Chinese; | ||||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 2 | ▶ | use base qw(Date::Language); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 2 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 15 | # ABSTRACT: Chinese localization for Date::Format | ||||||||||
| 16 | |||||||||||
| 17 | 2 | our @DoW = qw(星期日 星期一 星期二 星期三 星期四 星期五 星期六); | |||||||||
| 18 | 2 | our @MoY = qw(一月 二月 三月 四月 五月 六月 | |||||||||
| 19 | 七月 八月 九月 十月 十一月 十二月); | ||||||||||
| 20 | 2 | our @DoWs = map { $_ } @DoW; | |||||||||
| 21 | 2 | our @MoYs = map { $_ } @MoY; | |||||||||
| 22 | 2 | our @AMPM = qw(上午 下午); | |||||||||
| 23 | |||||||||||
| 24 | 2 | our @Dsuf = (qw(日 日 日 日 日 日 日 日 日 日)) x 3; | |||||||||
| 25 | |||||||||||
| 26 | 2 | our ( %MoY, %DoW ); | |||||||||
| 27 | 2 | Date::Language::_build_lookups(); | |||||||||
| 28 | |||||||||||
| 29 | # Formatting routines | ||||||||||
| 30 | |||||||||||
| 31 | 2 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 32 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 33 | 2 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 34 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 35 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 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
| |||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub format_o { sprintf("%2d%s",$_[0]->[3],"日") } | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 39 | |||||||||||
| 40 | 2 | 1; | |||||||||
| 41 | |||||||||||
| 42 | __END__ | ||||||||||