Date-Japanese-Era-Table-Builder
view release on metacpan or search on metacpan
DESCRIPTION
This module is used to define the conversion table used by
Date::Japanese::Era, unfettered by concepts such as
"post-gregorian-calender", "past eras only" and "factually correct".
The module has three primary uses: The (far) past, the (far) future, and
the (alternate) present, and was written as a writing aid when dealing
with stories relating to future eras of Japan, although it's equally
useful for quick conversion of old eras in a selected range, or
accessing the calendar as it would look with alternate era names.
METHODS
build_table
The module has one subroutine:
Date::Japanese::Era::Table::Builder::build_table(), which takes a
list of eras in contiguous order of earliest to latest, each an
array reference containing, in order, the proper era name, the ASCII
era name, and the gregorian year, month and day that constitutes the
first day of the era. (See example under SYNOPSIS.)
lib/Date/Japanese/Era/Table/Builder.pm view on Meta::CPAN
["\x{5927}\x{6B63}", 'taishou', 1912, 7, 31],
["\x{662D}\x{548C}", 'shouwa', 1926, 12, 26],
["\x{5E73}\x{6210}", 'heisei', 1989, 1, 8],
["\x{4EE4}\x{548C}", 'reiwa', 2019, 5, 1],
);
=head1 DESCRIPTION
This module is used to define the conversion table used by L<Date::Japanese::Era>, unfettered by concepts such as "post-gregorian-calender", "past eras only" and "factually correct".
The module has three primary uses: The (far) past, the (far) future, and the (alternate) present, and was written as a writing aid when dealing with stories relating to future eras of Japan, although it's equally useful for quick conversion of old er...
=head1 METHODS
=over 4
=item build_table
The module has one subroutine: Date::Japanese::Era::Table::Builder::build_table(), which takes a list of eras in contiguous order of earliest to latest, each an array reference containing, in order, the proper era name, the ASCII era name, and the gr...
When using this module, it is critical that this subroutine is called before any calls to Date::Japanese::Era, unless you really know what you are doing.
( run in 1.791 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )