Example Output:

Monday 29th May 2023 11:19:09 AM

الاثنين 09 ذو القعدة 1444 11:19:09 صباحاً [القمر الليلة]

Monday 09 Dhu al-Qi'dah 1444 11:19:09 AM

الاثنين 29 أيار 2023 11:19:09 صباحاً

الاثنين 29 مايو 2023 11:19:09 صباحاً

الاثنين 29 أيار/مايو 2023 11:19:09 صباحاً

الاثنين 29 الماء 1391 11:19:09 صباحاً

الاثنين 29 ماي 2023 11:19:09 صباحاً

الاثنين 29 ماي 2023 11:19:09 صباحاً

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

Names of included or required files:

Related Class Documentation