* @author Khaled Al-Sham'aa <*****@*****.**> * @copyright 2006-2016 Khaled Al-Sham'aa * * @license LGPL <http://www.gnu.org/licenses/lgpl.txt> * @link http://www.ar-php.org */ error_reporting(E_STRICT); $time_start = microtime(true); 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 = 'قبل إسبوعين';