PHP Classes

ArDate: Format times and dates in Arabic

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 74%Total: 2,396 All time: 1,628 This week: 660Up
Version License PHP version Categories
ardate 1.0GNU General Publi...4.0Localization, Time and Date


This package is specific mainly for applications used in Saudi Arabia Saudi Arabia .

This class can be used to format times and dates in Arabic.

It implements functionality similar to PHP date function. It takes as parameters a timestamp integer value and a date format string.

The class returns a string formatted represented the given date in Arabic encoded using the Windows-1256 character set. The names of the months, days of the week and AM and PM references are translated into the Arabic equivalents.

The class can also convert a data from the Gregorian calendar (represented in timestamp input) into a data Hegri Islamic calendar using same format string of the PHP date function.

This class is part of Khaled Al-Shamaa project for PHP and Arabic language:

Innovation Award
PHP Programming Innovation award winner
December 2006

Prize: One copy of the Zend Studio
PHP provides an extensive set of functions to manipulate and format date and time values. However, these functions only work with the Gregorian calendar.

This class provides an alternative that works with the Arabic calendar.

Manuel Lemos
Picture of Khaled Al-Shamaa
  Performance   Level  
Name: Khaled Al-Shamaa <contact>
Classes: 22 packages by
Country: Egypt Egypt
Age: 48
All time rank: 481 in Egypt Egypt
Week rank: 246 Down5 in Egypt Egypt Down
Innovation award
Innovation award
Nominee: 10x

Winner: 4x

  Files folder image Files  
File Role Description
Files folder imageimages (3 files)
Files folder imagephp5 (1 file)
Accessible without login HTML file about.html Doc. Documentation
Plain text file ArDate.class.php Class Class file
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file style.css Data Class file

  Files folder image Files  /  images  
File Role Description
  Accessible without login Image file alpha.png Icon Image
  Accessible without login Image file shadow.gif Icon Image
  Accessible without login Image file thumb.jpg Icon Image

  Files folder image Files  /  php5  
File Role Description
  Plain text file ArDate.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,628
This week:660Up
 User Ratings  
 All time