| 1 | package Date::Language::Arabic; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 10 | # ABSTRACT: Arabic localization for Date::Format | ||||||||||
| 11 | |||||||||||
| 12 | 2 | our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); | |||||||||
| 13 | |||||||||||
| 14 | 2 | @DoW = qw(الأحد الاثنين الثلاثاء الأربعاء الخميس الجمعة السبت); | |||||||||
| 15 | 2 | @MoY = qw(يناير فبراير مسيرة أبريل مايو يونيو يوليو أغسطس سبتمبر أكتوبر نوفمبر ديسمبر); | |||||||||
| 16 | 2 | @DoWs = map { substr($_,0,3) } @DoW; | |||||||||
| 17 | 2 | @MoYs = map { substr($_,0,3) } @MoY; | |||||||||
| 18 | 2 | $MoYs[6] = 'يوليو'; | |||||||||
| 19 | 2 | @AMPM = qw(صباحا مساءا); | |||||||||
| 20 | |||||||||||
| 21 | 2 | @Dsuf = ((qw(er e e e e e e e e e)) x 3, 'er'); #To be amended | |||||||||
| 22 | |||||||||||
| 23 | 2 | Date::Language::_build_lookups(); | |||||||||
| 24 | |||||||||||
| 25 | # Formatting routines | ||||||||||
| 26 | |||||||||||
| 27 | 2 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 28 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 29 | 2 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 30 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 31 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 32 | 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
| |||||||||||
| 33 | |||||||||||
| 34 | 2 | 1; | |||||||||
| 35 | |||||||||||
| 36 | __END__ | ||||||||||