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

Class: ArMktime

Source Location: /sub/ArMktime.class.php

Class Overview


PHP class for Arabic and Islamic customization of PHP mktime function. It can convert Hijri date into UNIX timestamp format


Author(s):

Copyright:

  • Khaled Al-Shamaa 2008

Methods



Class Details

[line 38]
PHP class for Arabic and Islamic customization of PHP mktime function. It can convert Hijri date into UNIX timestamp format



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  Khaled Al-Shamaa 2008
link:  http://www.ar-php.com


[ Top ]


Class Methods


constructor __construct [line 39]

ArMktime __construct( )



[ Top ]

method convert [line 73]

Array convert( Integer $Y, Integer $M, Integer $D)

This will convert given Hegri date (Islamic calendar) into Gregorian date



Tags:

return:  Gregorian date [int Year, int Month, int Day]
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>


Parameters:

Integer   $Y   Hegri year (Islamic calendar)
Integer   $M   Hegri month (Islamic calendar)
Integer   $D   Hegri day (Islamic calendar)

[ Top ]

method islamic_to_jd [line 92]

Integer islamic_to_jd( Integer $year, Integer $month, Integer $day)

This will convert given Hegri date (Islamic calendar) into Julian day



Tags:

return:  Julian day
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>


Parameters:

Integer   $year   Hegri year
Integer   $month   Hegri month
Integer   $day   Hegri day

[ Top ]

method mktime [line 56]

Integer mktime( [Integer $hour = 0], [Integer $minute = 0], [Integer $second = 0], Integer $hj_month, Integer $hj_day, Integer $hj_year)

This will return current Unix timestamp for given Hegri 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   Hegri month (Islamic calendar)
Integer   $hj_day   Hegri day (Islamic calendar)
Integer   $hj_year   Hegri year (Islamic calendar)

[ Top ]


Documentation generated on Thu, 21 Feb 2008 13:58:54 +0200 by phpDocumentor 1.4.0