DateTime::Calendar::Japanese

DateTime Extension for Traditional Japanese Calendars
Download

DateTime::Calendar::Japanese Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daisuke Maki
  • Publisher web site:
  • http://search.cpan.org/~dmaki/

DateTime::Calendar::Japanese Tags


DateTime::Calendar::Japanese Description

DateTime Extension for Traditional Japanese Calendars DateTime::Calendar::Japanese is a Perl module which implements the traditional Japanese Calendar, which was used from circa 692 A.D. to 1867 A.D. The traditional Japanese Calendar is a lunisolar calendar based on the Chinese Calendar, and therefore this module may *not* be used for handling or formatting modern Japanese calendars which are Gregorian Calendars with a twist. Please use DateTime::Format::Japanese for that purpose.On top of the lunisolar calendar, this module implements a simple time system used in the Edo period, which is a type of temporal hour system, based on sunrise and sunset.SYNOPSIS use DateTime::Calendar::Japanese; # Construct a DT::C::Japanese object using the Chinese hexagecimal # cycle system my $dt = DateTime::Calendar::Japanese->new( cycle => $cycle, cycle_year => $cycle_year, month => $month, leap_month => $leap_month, day => $day, hour => $hour, hour_quarter => $hour_quarter ); # Construct a DT::C::Japanese object using the era system use DateTime::Calendar::Japanese::Era qw(HEISEI); my $dt = DateTime::Calendar::Japanese->new( era_name => HEISEI, era_year => $era_year, month => $month, leap_month => $leap_month, day => $day, hour => $hour, hour_quarter => $hour_quarter ); $cycle = $dt->cycle; $cycle_year = $dt->cycle_year; $era = $dt->era; # era object $era_name = $dt->era_name; $era_year = $dt->era_year; $month = $dt->month; $leap_month = $dt->leap_month; $day = $dt->day; $hour = $dt->hour; $canonical_hour = $dt->canonical_hour $hour_quarter = $dt->hour_quarter; Requirements: · Perl


DateTime::Calendar::Japanese Related Software