Example Output:

Saturday 13th March 2010 04:12:01 PM

السبت 29 ربيع الأول 1431 04:12:01 مساءً

السبت 13 آذار 2010 04:12:01 مساءً

السبت 13 مارس 2010 04:12:01 مساءً

السبت 13 آذار/مارس 2010 04:12:01 مساءً

السبت 13 الربيع 1378 04:12:01 مساءً

Example Code:

<?php
    date_default_timezone_set
('UTC');
    
$time time();
    
    echo 
date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    include(
'I18N_Arabic.php');
    
$Arabic = new I18N_Arabic('Date');

    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    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);
?>

Total execution time is 0.015345811843872 seconds
Amount of memory allocated to this script is 446128 bytes

Names of included or required files:

Related Class Documentation