PHP Classes

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

Recommend this page to a friend!

  Author Author  
Picture of Sallar Kaboli
Name: Sallar Kaboli <contact>
Classes: 1 package by
Country: Iran Iran
Age: 33
All time rank: 325766 in Iran Iran
Week rank: 170 Up5 in Iran Iran Up

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

# 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.*

  Classes of Sallar Kaboli  >  Jalali (Shamsi) DateTime Class  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Jalali (Shamsi) DateTime Class
Base name: jdatetime
Description: Convert and format dates in the Jalali calendar
Version: 2.0.0
PHP version: 5.2
License: MIT/X Consortium License
All time users: 491 users
All time rank: 5843
Week users: 2 users
Week rank: 140 Up
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Time and Date Time and date values, formats and conversion View top rated classes

  User ratings  
Not enough user ratings

  Applications that use this package
Sum up your days (Persian)

Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
GitHub Page
Updated frequently
Guides and Docs
Author's Website

  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

Install with Composer Install with Composer - Download Download all files: jdatetime.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
For more information send a message to info at phpclasses dot org.