Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArMktime

Source Location: /sub/ArMktime.class.php

Class Overview


This PHP class is an Arabic customization for PHP mktime function


Author(s):

Copyright:

  • 2006-2010 Khaled Al-Shamaa

Variables

Methods



Class Details

[line 123]
This PHP class is an Arabic customization for PHP mktime function



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2006-2010 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Variables

static $islamicEpoch =  1948439.5

[line 125]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 130]

ArMktime __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]

method convertDate [line 173]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  protected


Parameters:

integer   $Y   Hijri year (Islamic calendar)
integer   $M   Hijri month (Islamic calendar)
integer   $D   Hijri day (Islamic calendar)

[ Top ]

method islamicToJd [line 200]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  protected


Parameters:

integer   $year   Hijri year
integer   $month   Hijri month
integer   $day   Hijri day

[ Top ]

method jdToGreg [line 216]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  protected


Parameters:

integer   $julian   A julian day number as integer

[ Top ]

method mktime [line 151]

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-Shamaa <khaled.alshamaa@gmail.com>
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 253]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

integer   $m   Hijri month (Islamic calendar)
integer   $y   Hijri year (Islamic calendar)

[ Top ]


Documentation generated on Sat, 14 Aug 2010 13:23:55 -0700 by phpDocumentor 1.4.0