Example Output:

Sunday 25th January 2026

الخميس القادم - 1769644800 - Thursday 29th January 2026

الأحد الماضي - 1768694400 - Sunday 18th January 2026

بعد أسبوع و ثلاثة أيام - 1770233001 - Wednesday 04th February 2026

منذ تسعة أيام - 1768591401 - Friday 16th January 2026

قبل إسبوعين - 1768159401 - Sunday 11th January 2026

2 آب 1975 - 176169600 - Saturday 02nd August 1975

1 رمضان 1429 - 1220227200 - Monday 01st September 2008


Example Code:

<?php
    date_default_timezone_set
('UTC');
    
$time time();

    echo 
date('l dS F Y'$time);
    echo 
'<br /><br />';

    require 
'../../Arabic.php';
    
$Arabic = new I18N_Arabic('StrToTime');

    
$str  'الخميس القادم';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";
    
    
$str  'الأحد الماضي';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";
    
    
$str  'بعد أسبوع و ثلاثة أيام';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";
    
    
$str  'منذ تسعة أيام';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";
    
    
$str  'قبل إسبوعين';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";
    
    
$str  '2 آب 1975';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";

    
$str  '1 رمضان 1429';
    
$int  $Arabic->strtotime($str$time);
    
$date date('l dS F Y'$int);
    echo 
"$str - $int - $date<br /><br />";

Total execution time is 0.0056829452514648 seconds
Amount of memory allocated to this script is 537880 bytes

Names of included or required files:

Related Class Documentation