| 1 | ## | ||||||||||
| 2 | ## Greek tables | ||||||||||
| 3 | ## | ||||||||||
| 4 | ## Traditional date format is: DoW DD{eta} MoY Year (%A %o %B %Y) | ||||||||||
| 5 | ## | ||||||||||
| 6 | ## Matthew Musgrove <muskrat@mindless.com> | ||||||||||
| 7 | ## Translations graciously provided by Menelaos Stamatelos <men@kwsn.net> | ||||||||||
| 8 | ## This module returns unicode (utf8) encoded characters. You will need to | ||||||||||
| 9 | ## take the necessary steps for this to display correctly. | ||||||||||
| 10 | ## | ||||||||||
| 11 | |||||||||||
| 12 | package Date::Language::Greek; | ||||||||||
| 13 | |||||||||||
| 14 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 2 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 2 | ▶ | use Date::Language (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | |||||||||||
| 20 | 2 | ▶ | use base 'Date::Language'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | |||||||||||
| 22 | 2 | our $VERSION = '2.35'; # VERSION: generated | |||||||||
| 23 | # ABSTRACT: Greek localization for Date::Format | ||||||||||
| 24 | |||||||||||
| 25 | 2 | our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); | |||||||||
| 26 | |||||||||||
| 27 | 2 | @DoW = ( | |||||||||
| 28 | "Κυριακή", | ||||||||||
| 29 | "Δευτέρα", | ||||||||||
| 30 | "Τρίτη", | ||||||||||
| 31 | "Τετάρτη", | ||||||||||
| 32 | "Πέμπτη", | ||||||||||
| 33 | "Παρασκευή", | ||||||||||
| 34 | "Σάββατο", | ||||||||||
| 35 | ); | ||||||||||
| 36 | |||||||||||
| 37 | 2 | @MoY = ( | |||||||||
| 38 | "Ιανουαρίου", | ||||||||||
| 39 | "Φεβρουαρίου", | ||||||||||
| 40 | "Μαρτίου", | ||||||||||
| 41 | "Απριλίου", | ||||||||||
| 42 | "Μαΐου", | ||||||||||
| 43 | "Ιουνίου", | ||||||||||
| 44 | "Ιουλίου", | ||||||||||
| 45 | "Αυγούστου", | ||||||||||
| 46 | "Σεπτεμτου", | ||||||||||
| 47 | "Οκτωβρίου", | ||||||||||
| 48 | "Νοεμβρίου", | ||||||||||
| 49 | "Δεκεμβρίου", | ||||||||||
| 50 | ); | ||||||||||
| 51 | |||||||||||
| 52 | 2 | @DoWs = ( | |||||||||
| 53 | "Κυ", | ||||||||||
| 54 | "Δε", | ||||||||||
| 55 | "Τρ", | ||||||||||
| 56 | "Τε", | ||||||||||
| 57 | "Πε", | ||||||||||
| 58 | "Πα", | ||||||||||
| 59 | "Σα", | ||||||||||
| 60 | ); | ||||||||||
| 61 | 2 | @MoYs = ( | |||||||||
| 62 | "Ιαν", | ||||||||||
| 63 | "Φε", | ||||||||||
| 64 | "Μαρ", | ||||||||||
| 65 | "Απρ", | ||||||||||
| 66 | "Μα", | ||||||||||
| 67 | "Ιουν", | ||||||||||
| 68 | "Ιουλ", | ||||||||||
| 69 | "Αυγ", | ||||||||||
| 70 | "Σεπ", | ||||||||||
| 71 | "Οκ", | ||||||||||
| 72 | "Νο", | ||||||||||
| 73 | "Δε", | ||||||||||
| 74 | ); | ||||||||||
| 75 | |||||||||||
| 76 | 2 | @AMPM = ("πμ", "μμ"); | |||||||||
| 77 | |||||||||||
| 78 | 2 | @Dsuf = ("η" x 31); | |||||||||
| 79 | |||||||||||
| 80 | 2 | Date::Language::_build_lookups(); | |||||||||
| 81 | |||||||||||
| 82 | # Formatting routines | ||||||||||
| 83 | |||||||||||
| 84 | 2 | ▶ | sub format_a { $DoWs[$_[0]->[6]] } | ||||||||
|
Subroutine
format_a: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 85 | 2 | ▶ | sub format_A { $DoW[$_[0]->[6]] } | ||||||||
|
Subroutine
format_A: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 86 | 2 | ▶ | sub format_b { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_b: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 87 | 2 | ▶ | sub format_B { $MoY[$_[0]->[4]] } | ||||||||
|
Subroutine
format_B: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 88 | 0 | ▶ | sub format_h { $MoYs[$_[0]->[4]] } | ||||||||
|
Subroutine
format_h: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 89 | 0 | ▶ | sub format_o { sprintf("%2d%s",$_[0]->[3],"η") } | ||||||||
|
Subroutine
format_o: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 90 | 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
| |||||||||||
| 91 | |||||||||||
| 92 | 2 | 1; | |||||||||
| 93 | |||||||||||
| 94 | __END__ | ||||||||||