uCal is a PHP class that can be used to convert dates between the Hijri and Gregorian calendars. It features the ability to convert dates between Hijri and Gregorian calendars and vice-versa. It is fully compatible with Umm Al-Qura. Dates formatted like the PHP date() function can be returned. English/Arabic formatted Hijri and Gregorian dates and times can be output. Versions of the date() and mktime() functions for Hijri are also provided.