I18N_Arabic

# Class: I18N_Arabic_Mktime Source Location: /Arabic/Mktime.php
### Class Overview
This PHP class is an Arabic customization for PHP mktime function #### Author(s): Khaled Al-Sham'aa <khaled@ar-php.org> #### Copyright: 2006-2016 Khaled Al-Sham'aa | ### Methods convertDate hijriMonthDays islamicToJd jdToGreg mktime mktimeCorrection
### Class Details [line 120] This PHP class is an Arabic customization for PHP mktime function #### Tags:
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
copyright: | 2006-2016 Khaled Al-Sham'aa
link: | http://www.ar-php.org
license: | LGPL
[ Top ] ### Class Methods ### method convertDate [line 170]
`array convertDate( integer $Y, integer $M, integer $D)`
This will convert given Hijri date (Islamic calendar) into Gregorian date #### Tags:
return: | Gregorian date [int Year, int Month, int Day]
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | protected
#### Parameters:
integer | $Y | Hijri year (Islamic calendar)
integer | $M | Hijri month (Islamic calendar)
integer | $D | Hijri day (Islamic calendar)
[ Top ] ### method hijriMonthDays [line 291]
`integer hijriMonthDays( integer $m, integer $y, [boolean $umAlqoura = true])`
Calculate how many days in a given Hijri month #### Tags:
return: | Days in a given Hijri month
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | public
#### Parameters:
integer | $m | Hijri month (Islamic calendar)
integer | $y | Hijri year (Islamic calendar), valid range[1320-1459]
boolean | $umAlqoura | Should we implement Um-Al-Qura calendar correction in this calculation (default value is true)
[ Top ] ### method islamicToJd [line 193]
`integer islamicToJd( integer $year, integer $month, integer $day)`
This will convert given Hijri date (Islamic calendar) into Julian day #### Tags:
return: | Julian day
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | protected
#### Parameters:
integer | $year | Hijri year
integer | $month | Hijri month
integer | $day | Hijri day
[ Top ] ### method jdToGreg [line 208]
`integer jdToGreg( integer $julian)`
Converts Julian Day Count to Gregorian date #### Tags:
return: | The gregorian date as a string in the form "month/day/year"
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | protected
#### Parameters:
integer | $julian | A julian day number as integer
[ Top ] ### method mktime [line 148]
`integer mktime( integer $hour, integer $minute, integer $second, integer $hj_month, integer $hj_day, integer $hj_year, [integer $correction = 0])`
This will return current Unix timestamp for given Hijri date (Islamic calendar) #### Tags:
return: | Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | public
#### Parameters:
integer | $hour | Time hour
integer | $minute | Time minute
integer | $second | Time second
integer | $hj_month | Hijri month (Islamic calendar)
integer | $hj_day | Hijri day (Islamic calendar)
integer | $hj_year | Hijri year (Islamic calendar)
integer | $correction | To apply correction factor (+/- 1-2) to standard Hijri calendar
[ Top ] ### method mktimeCorrection [line 256]
`integer mktimeCorrection( integer $m, integer $y)`
Calculate Hijri calendar correction using Um-Al-Qura calendar information #### Tags:
return: | Correction factor to fix Hijri calendar calculation using Um-Al-Qura calendar information
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | public
#### Parameters:
integer | $m | Hijri month (Islamic calendar)
integer | $y | Hijri year (Islamic calendar), valid range [1420-1459]
[ Top ] Documentation generated on Fri, 01 Jan 2016 10:26:08 +0200 by phpDocumentor 1.4.0