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.
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:
http://www.al-shamaa.com/php/arabic/