PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   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
Description 

Author

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: 325062 in Iran Iran
Week rank: 192 Up1 in Iran Iran Up

Details

# 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](http://sallar.me) - [Omid Pilevar](http://pilevar.ir) - [Amir Latifi](http://amiir.me) ### Requirements jDateTime Requires **PHP >= 5.2** ### License jDateTime was created by [Sallar Kaboli](http://sallar.me) and released under the [MIT License](http://opensource.org/licenses/mit-license.php). Copyright (C) 2012 [Sallar Kaboli](http://sallar.me) Part of Phoenix Framework (p5x.org) by [Phoenix Alternatvie](http://p5x.org) Original Jalali to Gregorian (and vice versa) convertor: Copyright (C) 2000 Roozbeh Pournader and Mohammad Toossi ### Resources - [List of supported timezones](http://www.php.net/manual/en/timezones.php) - [Documentation and Instructions in Persian](http://sallar.me/projects/jdatetime) - [Project page in phpclasses.org](http://www.phpclasses.org/jdatetime) ### Support This Project [![Donate via Paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R7Y6R3UZLUNP6) # Documentation *Yet to be written. Please check back soon.*

  Files folder image Files (4)  
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 README.md Doc. Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:511
This week:0
All time:5,763
This week:56Up
User Comments (2)
&#1587;&#1662;&#1575;&#1587;
11 years ago (winserver)
72%StarStarStarStar
This was exactly was I was looking for, thanks dude.
13 years ago (emadghasemi)
67%StarStarStarStar