Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

idate(1) [debian man page]

IDATE(1)							   User Commands							  IDATE(1)

NAME
idate - A Gregorian/Meladi to/from Hijri/Islamic date converter SYNOPSIS
idate [--gregorian yyyymmdd] [--hijri yyyymmdd] [--simple] [--umm_alqura] [--help] DESCRIPTION
The idate program is a Gregorian to Hijri (and vice-versa) date converter. The application uses and offers multiple calculation methods with not all of them agreeing at all times. The reason for this multiplicity is due to not having one agreed upon method and so various entities develop and advocate their calculations. idate is able to comprehend and calculate both pre-epoch or pre-Hijrah, denoted as "B.H", as well as post-epoch or post-Hijrah, denoted as "A.H", dates. idate also utilizes Gregorian's pre-epoch "B.C" and post-epoch "A.D" dates and notes them per its output. When entering pre-epoch years, negative numbers ought to be utilized. idate when run without any command-line options uses the host machine's current Gregorian date and converts it to Hijri. OPTIONS
idate follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of all options is noted below: -h, --help Show summary of options -g, --gregorian yyyymmdd Specify the Gregorian date to be converted where 'y' stands for year, 'm' for month and 'd' for day -hi, --hijri yyyymmdd Specify the Hijri date to be converted where 'y' stands for year, 'm' for month and 'd' for day -s, --simple Specify a simplified output mode -u, --umm_alqura Specify to use the Umm Al-Qura calculation method (used mostly in Saudi Arabia) BACKGROUND
The Hijri calendar is used in most of the Arab world and is the symbolic calendar of the Islamic faithed worldwide. This calendar is known as the "Hijri" (based on the word "Hijrah" - denoting migration in Arabic) to signal Prophet Mohammed's (PBUH) migration from Makkah to Medinah on Thursday, July 15, 622 AD (Julian) or July 19, 622 AD (Gregorian). The Islamic Hijri calendar is strictly lunar (ie. moon-based) with twelve lunar months which do not correspond or track their solar coun- terparts (the Gregorian calendar is a solar or sun-based calendar). Lunar years and thus Hijri years are, on average, about 354 days long resulting in a Hijri year being roughly about 11 days shorter than its Gregorian counterpart. There is much discussion and confusion regarding how best to track the Hijri calendar. A great deal of that confusion is based on the fact that many rely on a human moon sighting to denote the start (or end) of a month (each month of the Hijri calendar starts when a new moon's crescent is observed or is made visible at sunset) as opposed to using an empirical mathematic certainty. The methods presented in this application and its underlying ITL library are strictly arithmetic in nature and do NOT take moon-phases into consideration (in short, observational approximation is not used). LIMITATIONS
The Umm Al-Qura option doesn't function with pre-epoch settings. REPORTING BUGS
Report bugs on the web using http://bugs.arabeyes.org AUTHOR
Written by Nadim Shaikli as part of the Arabeyes.org project. COPYRIGHT
idate is subject to the GNU General Public License (GPL). Copyright (C) 2005, Arabeyes, Nadim Shaikli. SEE ALSO
The ITL library (libitl) from the Islamic Tools and Libraries project. It is the underlying requirement for idate to function. The ITL library was created and is hosted at www.arabeyes.org. idate January 05, 2005 IDATE(1)

Check Out this Related Man Page

Hijri(3pm)						User Contributed Perl Documentation						Hijri(3pm)

NAME
Date::Hijri - Perl extension to convert islamic (hijri) and gregorian dates. SYNOPSIS
use Date::Hijri; # convert gregorian to hijri date my ($hd, $hm, $hy) = g2h($gd, $gm, $gy); # convert hijri to gregorian date my ($gd, $gm, $gy) = h2g($hd, $hm, $hy); DESCRIPTION
This simple module converts gregorian dates to islamic (hijri) and vice versa. The dates must be given as an array containing the day, month and year, and return the corresponding date as a list with the same elements. EXAMPLES
#!/usr/bin/perl -w use Date::Hijri; print join("-", g2h(22,8,2003)); # prints 23-6-1424 print join("-", h2g(23,6,1424)); # prints 22-8-2003 SEE ALSO
This code is just stolen from KDE's kcalendarsystemhijri.cpp at http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/kdecore/kcalendarsystemhijri.cpp Copyright (c) 2002-2003 Carlos Moro <cfmoro@correo.uniovi.es> Copyright (c) 2002-2003 Hans Petter Bieker <bieker@kde.org> kcalendarsystemhijri.cpp is translated from the Lisp code in ``Calendrical Calculations'' by Nachum Dershowitz and Edward M. Reingold, Software---Practice & Experience, vol. 20, no. 9 (September, 1990), pp. 899--928. This code is in the public domain, but any use of it should publically acknowledge its source. AUTHOR
Alex Pleiner, <alex@zeitform.de> COPYRIGHT AND LICENSE
Copyright (c) 2003 zeitform Internet Dienste. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER
I haven't really tested if the converted dates are right and hope someone will point out mistakes. Hijri calculations are very difficult. The islamic calendar is a pure lunar calendar, the new month starts by a physical (i.e. human) sighting of the crescent moon at a given locale. So it depends on several factors (like weather) that make it unreliable to calculate islamic calendars in advance. As a result the dates calculated by Date::Hijri can be false by one or more days. Please see http://www.rabiah.com/convert/introduction.html for further explanation. I'm not a muslim, but interested in Islamic culture, religion and calendar system. I believe in the Internet as a chance to realize that we live in a small world with multiple cultures, religions and philosophies. We can learn from others and develop tolerance, respect and understanding. Salam Alaikum (peace be with you) perl v5.10.0 2003-08-26 Hijri(3pm)
Man Page