Example Code:
<?php
date_default_timezone_set('UTC');
require '../../Arabic.php';
$Arabic = new I18N_Arabic('Mktime');
$correction = $Arabic->mktimeCorrection(9, 1429);
$time = $Arabic->mktime(0, 0, 0, 9, 1, 1429, $correction);
echo "Calculated first day of Ramadan 1429 unix timestamp is: $time<br>";
$Gregorian = date('l F j, Y', $time);
echo "Which is $Gregorian in Gregorian calendar";
$days = $Arabic->hijriMonthDays(9, 1429);
echo "That Ramadan has $days days in total";
Total execution time is 0.0062110424041748 seconds
Amount of memory allocated to this script is 491304 bytes
Names of included or required files:
- /home/stoffart/neu.stoffart-online.de/woocommerce-german-marketALT/lib/dompdf/I18N/Arabic/Examples/Mktime.php
- /home/stoffart/neu.stoffart-online.de/woocommerce-german-marketALT/lib/dompdf/I18N/Arabic.php
- /home/stoffart/neu.stoffart-online.de/woocommerce-german-marketALT/lib/dompdf/I18N/Arabic/Mktime.php
Related Class Documentation