DateTime::Calendar::Chinese

Traditional Chinese Calendar Implementation
Download

DateTime::Calendar::Chinese Ranking & Summary

Advertisement

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

DateTime::Calendar::Chinese Tags


DateTime::Calendar::Chinese Description

Traditional Chinese Calendar Implementation DateTime::Calendar::Chinese is a traditional Chinese calendar implementation.SYNOPSIS use DateTime::Calendar::Chinese; my $dt = DateTime::Calendar::Chinese->now(); my $dt = DateTime::Calendar::Chinese->new( cycle => $cycle, cycle_year => $cycle_year, month => $month, leap_month => $leap_month, day => $day, ); $dt->cycle; $dt->cycle_year; # 1 - 60 $dt->month; # 1-12 $dt->leap_month; # true/false $dt->day; # 1-30 $dt->elapsed_years; # years since "Chinese Epoch" my ($rd_days, $rd_secs, $rd_nanosecs) = $dt->utc_rd_values();This is an implementation of the Chinese calendar as described in "Calendrical Calculations" . Please note that the following description is the description from , and the author has not made attempts to verify the correctness of statements with other sources.The Chinese calendar described in is expressed in terms of "cycle", "cycle_year", "month", "a boolean leap_month", and "day".Traditional Chinese years have been counted using the "Sexagecimal Cycle of Names", which is a cycle of 60 names for each year. Requirements: · Perl


DateTime::Calendar::Chinese Related Software