DateTime::Event::Zodiac - Return zodiac for a given date
use DateTime::Event::Zodiac qw(zodiac_date_name zodiac_date_symbol zodiac_astro_name zodiac_astro_symbol); my $dt = DateTime->new( year => 1979, month => 3, day => 27, ); print zodiac_date_name($dt); print zodiac_astro_symbol($dt);
Returns the latin zodiac name or alternatively the unicode zodiac symbol for the given date. The zodiac may be calculated using either fixed dates or using the exact longitude of the sun.
The module exports no symbols by default. All used functions must be requested in the use statement.
All methods return undef on failure.
$name = zodiac_date_name($dt);
Latin zodiac name: aries, taurus, gemini, cancer, leo, virgo, libra, scorpius, sagittarius, capricornus, aquarius and pisces.
Fixed dates.
$symbol = zodiac_date_symbol($dt);
Unicode zodiac symbol positions U+2648 to U+2653.
$name = zodiac_astro_name($dt);
Latin zodiac name: aries, taurus, gemini, ...
Calculated from the longitude of the sun.
$symbol = zodiac_astro_symbol($dt);
Simply computes the zodiac from the fixed date and returns a hash with the keys name, symbol, start and end.
Used internally by zodiac_date_name and zodiac_date_symbol
zodiac_date_name
zodiac_date_symbol
Computes the zodiac from the position of the sun and returns a hash with the keys name, symbol, start and end. The keys start and end should be ignored since they are only used for the zodiac_date function.
zodiac_date
May differ from the results of zodiac_date depending on the solar year (leap year ect).
See DateTime::Astro for notes on accuracy.
Used internally by zodiac_astro_name and zodiac_astro_symbol
zodiac_astro_name
zodiac_astro_symbol
The author of this module regads astrology as being a pseudoscience and superstition. I wrote this module for my job. I was young, foolish and I needed the money.
The zodiac_astro_horoscope and zodiac_date_horoscope functions have not yet been implemented and probably never will be ;-)
zodiac_astro_horoscope
zodiac_date_horoscope
Please report any bugs or feature requests to datetime-event-zodiac@rt.cpan.org, or through the web interface at http://rt.cpan.org/Public/Bug/Report.html?Queue=DateTime::Event::Zodiac. I will be notified, and then you'll automatically be notified of progress on your report as I make changes.
datetime-event-zodiac@rt.cpan.org
Maroš Kollár CPAN ID: MAROS maros [at] k-1.com L<http://www.k-1.com>
DateTime::Event::Zodiac is Copyright (c) 2008-13 Maroš Kollár - http://www.k-1.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install DateTime::Event::Zodiac, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Event::Zodiac
CPAN shell
perl -MCPAN -e shell install DateTime::Event::Zodiac
For more information on module installation, please visit the detailed CPAN module installation guide.