Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borsaco/jalalidatetime
PHP class to convert dates from Gregorian calendar system to Jalali calendar system and vice versa.
https://github.com/borsaco/jalalidatetime
Last synced: about 4 hours ago
JSON representation
PHP class to convert dates from Gregorian calendar system to Jalali calendar system and vice versa.
- Host: GitHub
- URL: https://github.com/borsaco/jalalidatetime
- Owner: borsaco
- License: mit
- Created: 2019-07-09T06:31:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T06:44:04.000Z (over 5 years ago)
- Last Synced: 2024-05-02T10:44:22.520Z (7 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jalaliDateTime
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](https://getcomposer.org).
```bash
composer require borsaco/jalali-date-time
```## Manual Installation
Get a copy of package source code. You can do this in two ways:
1. Download ZIP version of the source code and unzip it in desired location
2. Run `git clone https://github.com/borsaco/JalaliDateTime.git` to clone this repositoryAfter getting a copy of source code, it is enough to include `jdatetime.class.php` where you need to use it.
```php
require_once 'path/to/source/jdatetime.class.php';
```