PHP Classes

Jalali (Shamsi) DateTime Class: Convert and format dates in the Jalali calendar

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 511 All time: 5,763 This week: 56Up
Version License PHP version Categories
jdatetime 2.0.0MIT/X Consortium ...5.2PHP 5, Time and Date


This class can convert and format dates in the Jalali calendar.

It provides functions equivalent to PHP functions to deal with dates in the Jalali calendar.

The class provides mainly equivalent functions for PHP date and mktime.

Picture of Sallar Kaboli
Name: Sallar Kaboli <contact>
Classes: 1 package by
Country: Iran Iran
Age: 35
All time rank: 324762 in Iran Iran
Week rank: 243 Up4 in Iran Iran Up


# jDateTime Jalali (Shamsi) DadeTime class written in PHP, Supports year higher than 2038. ### About v2.0.0 PHP's default `date` function does not support years higher than 2038, so the `DateTime` class was introduced in PHP5 to solve this problem and provide more sophisticated date methods. Iranian users have been using an old `jdate` function to convert Gregorian date to the Jalali equivalent, which completely based on the old `date` function so its out-dated. ### Contributors: - [Sallar Kaboli]( - [Omid Pilevar]( - [Amir Latifi]( ### Requirements jDateTime Requires **PHP >= 5.2** ### License jDateTime was created by [Sallar Kaboli]( and released under the [MIT License]( Copyright (C) 2012 [Sallar Kaboli]( Part of Phoenix Framework ( by [Phoenix Alternatvie]( Original Jalali to Gregorian (and vice versa) convertor: Copyright (C) 2000 Roozbeh Pournader and Mohammad Toossi ### Resources - [List of supported timezones]( - [Documentation and Instructions in Persian]( - [Project page in]( ### Support This Project [![Donate via Paypal](]( # Documentation *Yet to be written. Please check back soon.*

  Files folder image Files  
File Role Description
Plain text file jdatetime.class.php Class Base Class
Accessible without login Plain text file examples-static.php Example Example script
Accessible without login Plain text file examples.php Example Examples
Accessible without login Plain text file Doc. Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,763
This week:56Up
User Comments (2)
10 years ago (winserver)
This was exactly was I was looking for, thanks dude.
12 years ago (emadghasemi)