IPRAYTIME(1)
๐ IPRAYTIME ๐
the Islamic Prayer Times Calculator, and bestieโฆ she serves. ๐โจ
๐ธ NAME ๐ธ
ipraytime โ an Islamic Prayer Times Calculator ๐
โจ SYNOPSIS โจ
ipraytime [--date yyyymmdd] [--latitude real_num] [--longitude real_num]
[--utcdiff real_num] [--method int_num] [--ishaangle real_num]
[--fajrangle real_num] [--dst int_num] [--dst-start yyyymmdd] [--dst-end
yyyymmdd] [--round int_num] [--extreme int_num] [--sea-level int_num]
[--month [int_num]] [--year [int_num]] [--file pref_file] [--end]
[--brief] [--help]
๐ฆ DESCRIPTION ๐ฆ
okay so ipraytime is literally a generator of Islamic prayer times for any given location. no cap. It can spit out daily, monthly, and yearly schedules based on whatever settings you tell it. ๐
In its single day output format, it can calculate the appropriate Qibla direction (heading towards the Kabaa) and Imsaak time (the time when one is to start fasting). And ipraytime also has a minimalistic option to show a brief one-liner showing prayer times for a single day. iconic.
ipraytime is configured using a file in your home directory (~/.iprayrc). For configuration and usage samples, see the EXAMPLES section below. It is also possible to specify settings using an environment variable (IPT_DATA) or through passing arguments to the command line โ and that command line takes precedent over all other settings, so she's the main character fr fr. ๐
If none of the above is found, ipraytime defaults to using Makkah's location with the host machine's current date settings. ๐
๐ OPTIONS ๐
A summary of all command-line arguments and configuration options are noted below โ and yes bestie, all of them, we're not skipping a single one:
-h,--helpโ Show summary of options. ๐ซถ-d,--date yyyymmddโ Specify the Gregorian date to use whereystands for year,mfor month anddfor day. ๐-lat,--latitude real_numโ Specify the latitude setting to use during calculations. The value could be any real number. ๐-lon,--longitude real_numโ Specify the longitude setting to use during calculations. The value could be any real number. ๐บ๏ธ-sea,--sea-level real_numโ Specify height above Sea level (in meters). ๐๏ธ-u,--utcdiff real_numโ Specify the difference between the specified timezone and that of GMT/UTC. The value could be any real number. โฐ-a,--anglemethod [int_num]โ Specify which angle method calculation to use. The angle methods that are currently supported byipraytimeare:- Egyptian General Authority of Survey
- Fajr/Isha Angle :
20/18 - Used in : Africa, Indonesia, Iraq, Jordan, Lebanon, Malaysia, Singapore, Syria, Parts of the USA
- Fajr/Isha Angle :
- University of Islamic Sciences, Karachi (Shaf'i)
- Fajr/Isha Angle :
18/18 - Used in : Iran, Kuwait, Parts of Europe
- Fajr/Isha Angle :
- University of Islamic Sciences, Karachi (Hanafi)
- Fajr/Isha Angle :
18/18 - Used in : Afghanistan, Bangladesh, India
- Fajr/Isha Angle :
- Islamic Society of North America
- Fajr/Isha Angle :
15/15 - Used in : Canada, Parts of UK, Parts of USA
- Fajr/Isha Angle :
- Muslim World League (MWL)
- Fajr/Isha Angle :
18/17 - Used in : Parts of Europe, Far East, Parts of USA
- Fajr/Isha Angle :
- Umm Al-Qurra University
- Fajr/Isha Angle :
19/0 - Isha Interval :
90minutes from Al-Maghrib prayer but set to120during Ramadan. - Used in : Saudi Arabia
- Fajr/Isha Angle :
- Fixed Isha Angle Interval (always 90)
- Fajr/Isha Angle :
19.5/0 - Isha Interval :
90minutes from Al-Maghrib prayer - Used in : Bahrain, Oman, Qatar, UAE
- Fajr/Isha Angle :
- Egyptian General Authority of Survey (Egypt)
- Fajr/Isha Angle :
19.5/17.5 - Used in : Egypt
- Fajr/Isha Angle :
- Om Al-Qurra University (Ramadan)
- Fajr/Isha Angle :
19/0 - Isha Interval :
120minutes from Al-Maghrib prayer - Used in : Saudi Arabia (during Ramadan)
- Fajr/Isha Angle :
- Moonsighting Committee Worldwide (MWC)
- Fajr/Isha Angle :
18/18(used for comparison) - Fajr and Isha calculated with different values based on the season
- Used in : parts of the United States, parts of the UK
- Fajr/Isha Angle :
- Morocco Awqaf Ministry
- Fajr/Isha Angle :
19/17 - Zuhr Offset :
5min - Maghrib Offset :
5min - Used in : Morocco
- Fajr/Isha Angle :
- Egyptian General Authority of Survey
-fa,--fajrangle [real_num]โ Specify which angle to use for Fajr. Will override the one set by the--anglemethod. ๐-ia,--ishaangle [real_num]โ Specify which angle to use for Isha. Will override the one set by the--anglemethod. ๐-s,--dst [int_num]โ By default,ipraytimeuses the host's machine timezone information to determine whether daylight saving time is in effect or not. If this information is unavailable or not accurate, this option provides the means to explicitly set the DST status. Set this to0to completely disable daylight saving time. Set it to1to always add one hour to the computed prayer times. โณ-ss,--dst-start yyyymmdd-se,--dst-end yyyymmddโ Specify a range of dates where day light saving time is in effect for your location. For example:
ipraytime --dst-start 20040328 --dst-end 20041029
-m,--month [int_num]โ Specify to print either current month's schedule or the passed-in value's month schedule. ๐๏ธ-y,--year [int_num]โ Specify to print either current year's schedule or the passed-in value's year schedule. ๐-f,--file pref_fileโ Specify filename to load which contains user's settings and preferences. ๐-e,--endโ Specify to continue with schedule printing until the end of specified month. ๐-b,--briefโ Specify to print a brief one-liner output for single day mode. โจ-h12,--regular-hourโ Display the prayer times in regular time instead of military time. ๐ฐ๏ธ-r,--round [int_num]โ Specify a method for rounding seconds. The supported methods are:0โ No Rounding. Completely ignore the computed seconds value.1โ Regular Rounding. If seconds are equal to30or above, add1minute.2โ Special Rounding. Similar to regular rounding but we always round down for Shurooq and Imsaak times. (This is the default method). ๐3โ Aggressive Rounding. Similar to Special Rounding but we add1minute if the seconds value are equal to1second or more. ๐
-x,--extreme [int_num]โ Specify a method for prayer times calculations at high (49+) or extreme (66+) latitudes. Prayer times calculations relies heavily on astronomical events. At these latitudes some of those events do not occur at all, or are impossible to precisely calculate using conventional means. For example, at certain locations the sun never moves below the horizon to the position of the amount of Fajr angle degrees specified, therefore there will be no real Fajr time at that location. The supported extreme methods are:
Note: Methods that have the If Invalid keyword are applied only when ipraytime is unable to calculate these times. Methods that have the Always keyword are applied always.
0โ None. If unable to calculate, leave as99:991โ Nearest Latitude (Aqrab Al-Bilaad): All prayers [Always]2โ Nearest Latitude (Aqrab Al-Bilaad): Fajr and Isha [Always]3โ Nearest Latitude (Aqrab Al-Bilaad): All prayers [If Invalid]4โ Nearest Good Day (Aqrab Al-Ayyam): All prayers [Always]5โ Nearest Good Day (Aqrab Al-Ayyam): All prayers [If Invalid] (This is the default method) ๐
Note: All the extreme methods following below do not have a proof in traditional Shari'a (Fiqh) resources. These methods were introduced by modern day Muslim scholars and scientists for practical reasons only.
6โ Seventh of Night: Fajr and Isha [Always]7โ Seventh of Night: Fajr and Isha [If Invalid]8โ Seventh of Day: Fajr and Isha [Always]9โ Seventh of Day: Fajr and Isha [If Invalid]10โ Half of the Night: Fajr and Isha [Always]11โ Half of the Night: Fajr and Isha [If Invalid]
Note: To use the next two methods, you will need to specifyFajrIntervalandIshaIntervalin your configuration file.
12โ Minutes from Shorooq/Maghrib: Fajr and Isha [Always]13โ Minutes from Shorooq/Maghrib: Fajr and Isha [If invalid]14โ Nearest Good Day: Fajr and Ishaa if either is invalid15โ Angle based: Fajr and Ishaa if invalid
โฆand bestie, we're not done yet โ there's more coming in part 2 ๐
โจ CONFIGURATION โจ
okay so bestie, ipraytime can load its settings from a configuration file, and the default spot is ~/.iprayrc ๐. You can change where it looks with the --file option. The file content should follow this syntax: variable_string: value. Peep the EXAMPLES section for actual usage examples. Below is the full list of every supported setting you can put in the config file:
๐ธ Location Settings ๐ธ
Cityโ specifies an informational city name string to be displayed for reference.Latitudeโ specifies the latitude setting to use during calculations. The value can be any real number.Longitudeโ specifies the longitude setting to use during calculations. The value can be any real number.UTCโ specifies the difference between the specified timezone and GMT/UTC. The value can be any real number.SeaLevelโ specifies height above sea level, in meters.Pressureโ specifies atmospheric pressure in millibars. Default is1010.Temperatureโ specifies temperature in Celsius degrees. Default is10.
๐งฎ Calculation Method Settings ๐งฎ
AngleMethodโ specifies which angle method calculation to use. The value needs to be a positive integer of one of the supported methods. See the--anglemethodoption for more info.Mathhabโ specifies which mathhab to use in calculations. Currently supported values are1for Shaf'i and2for Hanafi.OffsetListโ specifies a list of values in minutes to add or subtract any amount of minutes from the daily computed prayer times. For example, if you want to add 30 seconds to Maghrib and subtract 2 minutes from Isha, set this option to0 0 0 0 0.5 -2.FajrAngleโ specifies the fajr angle to use during calculations. Will override the values of the specified method.IshaAngleโ specifies the isha angle to use during calculations. Will override the values of the specified method.ImsaakAngleโ specifies imsaak and fajr angle difference. Default is1.5degrees.FajrIntervalโ specifies the number of minutes between fajr and shorooq. Should be a positive integer.IshaIntervalโ specifies the number of minutes between Isha and Maghrib. Should be a positive integer.ImsaakIntervalโ specifies a difference in minutes between imsaak and fajr. Default Imsaak interval from fajr is10minutes if theFajrIntervalis set.ExtremeMethodโ specifies which method to use for high and extreme latitudes. The value needs to be an integer of one of the supported extreme methods. See descriptions of the--extremeoption for the list of supported methods.NearestLatitudeโ specifies the latitude used for theNearest Latitudeextreme methods. Default is at48.5degrees.RoundMethodโ specifies which method to use for rounding seconds. The value needs to be an integer of one of the supported rounding methods. See the--roundoption for a list of supported methods.
๐ Daylight Saving Time Settings ๐
By default, ipraytime uses the host machine's timezone information to determine whether daylight saving time is in effect or not. If that info is unavailable or not accurate, these options give you a way to explicitly set the DST status.
DSTโ specifies the current DST status. Set it to0to completely disable daylight saving time. Set it to1to always add one hour to the computed prayer times.DST-Startโ specifies the start date when daylight saving time adjustment is in effect for your location. This value should be a valid date inyyyymmddform.DST-Endโ specifies the date when daylight saving time adjustment period ends. This value should be a valid date inyyyymmddform.
๐ Display Settings ๐
HourFormatโ specifies a time format for displaying the prayer times. The value should be12(regular time) or24(military time).
๐ ENVIRONMENT ๐
IPT_DATAโ one means to pass in the various required settings is via this variable. The format needs to be"LocationName Latitude Longitude UTCdiff AngleMethodNumber". For instance:
setenv IPT_DATA "Dubai 25.25 55.3 4 2"
๐ FILES ๐
~/.iprayrcโ user configuration file.
๐ EXAMPLES ๐
A sample ~/.iprayrc showing how options are set:
City: Brussels, Belguim
Latitude: 50.8333
Longitude: 4.3333
UTC: 1
AngleMethod: 2
Mathhab: 1
OffsetList: 0 0 1 2.21 3 -1
Examples of using the command-line options:
ipraytime -y 2007
ipraytime -f /home/user/.iprayrc-Oman
ipraytime -lat 29.5000 -lon 47.7500 -u 3 --anglemethod 2 -d 20071229 -h12
๐ REPORTING BUGS ๐
Report bugs on the web using http://bugs.arabeyes.org
๐ AUTHORS ๐
Written by Nadim Shaikli and Thamer Mahmoud. Part of the Arabeyes.org project.
๐ COPYRIGHT ๐
ipraytime is subject to the GNU General Public License (GPL).
Copyright ยฉ 2005, Arabeyes, Nadim Shaikli.
Copyright ยฉ 2005-2010 Thamer Mahmoud
๐ญ SEE ALSO ๐ญ
ireminder(1)โ Prayer time reminder script that usesipraytime.- The ITL library (
libitl) from the Islamic Tools and Libraries project. It is the underlying requirement foripraytimeto function. The ITL library was created and is hosted at www.arabeyes.org.
and that's the whole page, bestie ๐ซถ this was ipraytime, dated May 1, 2010, and it lives in the manual as IPRAYTIME(1). stay iconic, mwah ๐โจ
๐ฆ where this page comes from
- debian trixie: itools 1.1-1 ยท GPL-2.0-or-later
- nixpkgs unstable: itools 1.1
- ubuntu noble: itools 1.1-1 ยท GPL-2.0-or-later
- ubuntu questing: itools 1.1-1
- ubuntu resolute: itools 1.1-1build1 ยท GPL-2.0-or-later
- ubuntu stonking: itools 1.1-2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms