- SEE ALSO
- COPYRIGHT AND LICENSE
Zodiac::Chinese::Table - Look up Chinese zodiac for a given Gregorian date
This document describes version 0.021 of Zodiac::Chinese::Table (from Perl distribution Zodiac-Chinese-Table), released on 2020-01-03.
use Chinese::Zodiac::Table qw(chinese_zodiac); my $res = chinese_zodiac("1980-02-17");
[ "1980-02-16", "1981-02-04", "yang", "metal", "庚", "申", "猴", "monkey", ]
This module can look up Chinese zodiac for a given Gregorian date. Compared to Zodiac::Chinese, it uses a lookup table (currently available for Jan 1900 - Feb 2092) so it is more accurate.
Data source is currently at: https://github.com/perlancar/gudangdata (table/chinese_zodiac), which in turn is parsed from Wikipedia article.
Return Chinese zodiac information for a Gregorian date
$date. Currently date must be a string in the format of
YYYY-MM-DD. Will return an arrayref containing these elements:
# index: 0 1 2 3 4 5 6 7 ["start_date", "end_date", "yin_yang", "element", "heavenly_stem", "earthly_branch", "zh_animal", "en_animal"].
Will return undef if date range is unsupported.
Please visit the project's homepage at https://metacpan.org/release/Zodiac-Chinese-Table.
Source repository is at https://github.com/perlancar/perl-Zodiac-Chinese-Table.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Zodiac-Chinese-Table
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
App::ZodiacUtils distribution contains some CLIs.
This software is copyright (c) 2020, 2015 by email@example.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.