DateTime::Indic::Utils - Utility functions for Indian calendar calculation
Version 0.01
my $dt = DateTime->now; my $ahargana = ahargana($dt); my $ayanamsha = ayanamsha($dt); my $moon = lunar_longitude($dt); my $d1 = DateTime::Calendar::VikramaSamvata::Gujarati->new( varsha => 2064, masa => 7, paksha => 1, tithi => 30, ); my $d2 = DateTime::Calendar::VikramaSamvata::Gujarati->new( varsha => 2065, masa => 1, paksha => 0, tithi => 15, ); my $bool = lunar_on_or_before($d1, $d2); my $sun = solar_longitude($dt); my $rashi = saura_rashi($dt); my $year = saura_varsha($dt); my $lunar_day = tithi_at_dt($dt);
A collection of utility functions and constants helpful in creating Indian calendars.
Note: In this document, Sanskrit words are transliterated using the ITRANS scheme.
These functions and constants were not included directly in DateTime::Indic::Chandramana as they are more useful stand-alone. None of them are exported by default.
Most of the functions operate on DateTime objects which I would like to change wherever possible.
Fixed date of the beginning of the Kali Yuga.
Time from aphelion to aphelion.
Time from apogee to apogee, with bija correction.
The Julian date at noon on Jan 1, 1900.
Mean length of Hindu sidereal year.
Mean length of Hindu sidereal month.
Mean time from new moon to new moon.
Fixed date of the beginning of the present yuga cycle.
Return the number of days that have elapsed from the beginning of the current Kali Yuga to $dt.
$dt
Given a datetime object, returns the chitrapakSha ayanAMsha.
Given a DateTime object $dt, returns the sayana longitude of the moon at $dt in decimal degrees.
Given two lunar dates, $d1 and $d2, returns true if $d1 is on or before $d2.
$d1
$d2
Given a DateTime object $dt, returns the sayana longitude of the sun at $dt in decimal degrees.
returns the zodiacal sign of the sun at DateTime $dt as an integer in the range 1 .. 12.
Returns the solar year at datetime $dt.
Returns the phase of the moon (tithi) at DateTime $dt, as an integer in the range 1..30.
Please report any bugs or feature requests through the web interface at <http://code.google.com/p/panchanga/issues/list>. I will be notified, and then you’ll automatically be notified of progress on your bug as I make changes. Please do not use rt.cpan.org!.
You can find documentation for this module with the perldoc command.
perldoc DateTime::Indic::Utils
Support requests for this module and questions about panchanga ganita should be sent to the panchanga-devel@lists.braincells.com email list. See http://lists.braincells.com/ for more details.
Questions related to the DateTime API should be sent to the datetime@perl.org email list. See http://lists.perl.org/ for more details.
You can also look for information at:
This projects web site
http://code.google.com/p/panchanga/
This projects (read-only) subversion source code repository
http://panchanga.googlecode.com/svn/perl/
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/DateTime-Indic
CPAN Ratings
http://cpanratings.perl.org/d/DateTime-Indic
Search CPAN
http://search.cpan.org/dist/DateTime-Indic
DateTime
Jaldhar H. Vyas, <jaldhar at braincells.com>
<jaldhar at braincells.com>
Copyright (C) 2009, Consolidated Braincells Inc.
This library 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 distribution.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'you’ll'. Assuming UTF-8
To install DateTime::Indic::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Indic::Utils
CPAN shell
perl -MCPAN -e shell install DateTime::Indic::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.