Example Output:

Friday 18th April 2025 04:37:03 PM

الجمعة 19 شوال 1446 04:37:03 مساءً [القمر الليلة]

Friday 19 Shawwal 1446 04:37:03 PM

الجمعة 18 نيسان 2025 04:37:03 مساءً

الجمعة 18 أبريل 2025 04:37:03 مساءً

الجمعة 18 نيسان/أبريل 2025 04:37:03 مساءً

الجمعة 18 الطير 1393 04:37:03 مساءً

الجمعة 18 أفريل 2025 04:37:03 مساءً

الجمعة 18 أبريل 2025 04:37:03 مساءً

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

Names of included or required files:

Related Class Documentation