borsaco / jalali-date-time
Jalali (Shamsi) DateTime class written in PHP, Supports year higher than 2038
1.0.0
2019-07-09 06:42 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2025-03-09 19:31:21 UTC
README
PHP class to convert dates from Gregorian calendar system to Jalali calendar system and vice versa. Supports dates beyond 2038.
Jalali, also known as Shamsi or Hijri Shamsi is the Iranian calendar system.
Installation
Using Composer
You can install this package using composer.
composer require borsaco/jalali-date-time
Manual Installation
Get a copy of package source code. You can do this in two ways:
- Download ZIP version of the source code and unzip it in desired location
- Run
git clone https://github.com/borsaco/JalaliDateTime.git
to clone this repository
After getting a copy of source code, it is enough to include jdatetime.class.php
where you need to use it.
require_once 'path/to/source/jdatetime.class.php';