| 1 |
## |
| 2 |
## Dutch tables |
| 3 |
## Contributed by Johannes la Poutre <[email protected]> |
| 4 |
## |
| 5 |
|
| 6 |
package Date::Language::Dutch; |
| 7 |
|
| 8 |
use strict; |
| 9 |
use warnings; |
| 10 |
use Date::Language (); |
| 11 |
use base 'Date::Language'; |
| 12 |
|
| 13 |
our $VERSION = '2.35'; # VERSION: generated |
| 14 |
# ABSTRACT: Dutch localization for Date::Format |
| 15 |
|
| 16 |
our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW); |
| 17 |
|
| 18 |
@MoY = qw(januari februari maart april mei juni juli |
| 19 |
augustus september oktober november december); |
| 20 |
@MoYs = map(substr($_, 0, 3), @MoY); |
| 21 |
$MoYs[2] = 'mrt'; # mrt is more common (Frank Maas) |
| 22 |
@DoW = map($_ . "dag", qw(zon maan dins woens donder vrij zater)); |
| 23 |
@DoWs = map(substr($_, 0, 2), @DoW); |
| 24 |
|
| 25 |
# these aren't normally used... |
| 26 |
@AMPM = qw(VM NM); |
| 27 |
@Dsuf = ('e') x 31; |
| 28 |
|
| 29 |
|
| 30 |
Date::Language::_build_lookups(); |
| 31 |
|
| 32 |
# Formatting routines |
| 33 |
|
| 34 |
sub format_a { $DoWs[$_[0]->[6]] } |
| 35 |
sub format_A { $DoW[$_[0]->[6]] } |
| 36 |
sub format_b { $MoYs[$_[0]->[4]] } |
| 37 |
sub format_B { $MoY[$_[0]->[4]] } |
| 38 |
sub format_h { $MoYs[$_[0]->[4]] } |
| 39 |
sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] } |
| 40 |
sub format_o { sprintf("%2de",$_[0]->[3]) } |
| 41 |
|
| 42 |
1; |
| 43 |
|
| 44 |
__END__ |
| 45 |
|
| 46 |
=pod |
| 47 |
|
| 48 |
=encoding UTF-8 |
| 49 |
|
| 50 |
=head1 NAME |
| 51 |
|
| 52 |
Date::Language::Dutch - Dutch localization for Date::Format |
| 53 |
|
| 54 |
=head1 VERSION |
| 55 |
|
| 56 |
version 2.35 |
| 57 |
|
| 58 |
=head1 AUTHOR |
| 59 |
|
| 60 |
Graham <[email protected]> |
| 61 |
|
| 62 |
=head1 COPYRIGHT AND LICENSE |
| 63 |
|
| 64 |
This software is copyright (c) 2020 by Graham Barr. |
| 65 |
|
| 66 |
This is free software; you can redistribute it and/or modify it under |
| 67 |
the same terms as the Perl 5 programming language system itself. |
| 68 |
|
| 69 |
=cut |