Example Output:

Saturday 12th July 2025 03:34:27 AM

السبت 16 محرم 1447 03:34:27 صباحاً [القمر الليلة]

Saturday 16 Muharram 1447 03:34:27 AM

السبت 12 تموز 2025 03:34:27 صباحاً

السبت 12 يوليو 2025 03:34:27 صباحاً

السبت 12 تموز/يوليو 2025 03:34:27 صباحاً

السبت 12 ناصر 1393 03:34:27 صباحاً

السبت 12 جويلية 2025 03:34:27 صباحاً

السبت 12 يوليوز 2025 03:34:27 صباحاً

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

Names of included or required files:

Related Class Documentation