Example Output:

Saturday 18th May 2024 06:00:52 AM

السبت 10 ذو القعدة 1445 06:00:52 صباحاً [القمر الليلة]

Saturday 10 Dhu al-Qi'dah 1445 06:00:52 AM

السبت 18 أيار 2024 06:00:52 صباحاً

السبت 18 مايو 2024 06:00:52 صباحاً

السبت 18 أيار/مايو 2024 06:00:52 صباحاً

السبت 18 الماء 1392 06:00:52 صباحاً

السبت 18 ماي 2024 06:00:52 صباحاً

السبت 18 ماي 2024 06:00:52 صباحاً

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

Names of included or required files:

Related Class Documentation