Date::Jalali - Perl extension for converting Gregorian Dates to Jalali
use Date::Jalali; my $t1 = new Date::Jalali (2003,6,9[,options]); # Option ; # 0 = Gregorian Dates to Jalali # 1 = Jalali to Gregorian Dates print $t1->jal_day; print $t1->jal_month; print $t1->jal_year;
This module converts Gregorian date to Jalali and Jalali date to Gregorian.
Gregorian date -> Jalali (used in Iran, ...?)
None by default.
http://www.cpan.org/
#Added Jalali to Gregorian Convertion.
Ahmad Anvari <http://www.anvari.org/bio/>
Redistributed by : Ehsan Golpayegani <http://www.golpayegani.com>
Copyright 2003 by Ahmad Anvari
Copyright 2012 by Ehsan Golpayegani
The original algorithm was written with regards to Gregorian<->Jalali convertor developed by Roozbeh Pournader and Mohammad Toossi available at:
http://www.farsiweb.info/jalali/jalali.c
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Date::Jalali, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Date::Jalali
CPAN shell
perl -MCPAN -e shell install Date::Jalali
For more information on module installation, please visit the detailed CPAN module installation guide.