Example Output:

Thursday 16th April 2026 12:15:13 AM

الخميس 28 شوال 1447 12:15:13 صباحاً [القمر الليلة]

Thursday 28 Shawwal 1447 12:15:13 AM

الخميس 16 نيسان 2026 12:15:13 صباحاً

الخميس 16 أبريل 2026 12:15:13 صباحاً

الخميس 16 نيسان/أبريل 2026 12:15:13 صباحاً

الخميس 16 الطير 1394 12:15:13 صباحاً

الخميس 16 أفريل 2026 12:15:13 صباحاً

الخميس 16 أبريل 2026 12:15:13 صباحاً

Example Code:

<?php
    date_default_timezone_set
('GMT');
    
$time time();

    echo 
date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    require 
'../../Arabic.php';
    
$Arabic = new I18N_Arabic('Date');

    
$correction $Arabic->dateCorrection ($time);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time$correction);

    
$day $Arabic->date('j'$time$correction);
    echo 
' [<a href="Moon.php?day='.$day.'" target=_blank>القمر الليلة</a>]';
    echo 
'<br /><br />';

    
$Arabic->setMode(8);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time$correction);
    echo 
'<br /><br />';

    
$Arabic->setMode(2);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';
    
    
$Arabic->setMode(3);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    
$Arabic->setMode(4);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    
$Arabic->setMode(5);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    
$Arabic->setMode(6);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    
$Arabic->setMode(7);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);

Total execution time is 0.057675123214722 seconds
Amount of memory allocated to this script is 507520 bytes

Names of included or required files:

Related Class Documentation