See also: Date
Related Class Documentation
<?php
date_default_timezone_set('UTC');
require('I18N/Arabic.php');
$Ar = new I18N_Arabic('Mktime');
$fix = $Ar->mktimeCorrection(9, 1429);
$time = $Ar->mktime(0,0,0,9,1,1429, $fix);
echo "<p>Calculated first day of Ramadan 1429
unix timestamp is: $time</p>";
$Gregorian = date('l F j, Y',$time);
echo "<p>Which is $Gregorian in
Gregorian calendar</p>";
$days = $Ar->hijriMonthDays(9, 1429);
echo "That Ramadan has $days days in total";
?>
|
Calculated first day of Ramadan 1429
unix timestamp is: 1220227200 Which is Monday September 1, 2008 in
Gregorian calendar That Ramadan has 30 days in total
|
|