Example Output:

Thursday 01st October 2026 09:18:19 PM

الخميس 19 ربيع الثاني 1448 09:18:19 مساءً [القمر الليلة]

Thursday 19 Rabi' II 1448 09:18:19 PM

الخميس 01 تشرين أول 2026 09:18:19 مساءً

الخميس 01 أكتوبر 2026 09:18:19 مساءً

الخميس 01 تشرين أول/أكتوبر 2026 09:18:19 مساءً

الخميس 01 التمور 1394 09:18:19 مساءً

الخميس 01 أكتوبر 2026 09:18:19 مساءً

الخميس 01 أكتوبر 2026 09:18:19 مساءً

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.0047378540039062 seconds
Amount of memory allocated to this script is 478576 bytes

Names of included or required files:

Related Class Documentation