2017 © Pedro Peláez
 

library jdate

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly.

image

sayadaazami/jdate

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly.

  • Monday, November 20, 2017
  • by sayadaazami
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

JDate

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly., (*1)

This package is using carbon as core for Georgian calendar., (*2)

Installation

$ composer require sayadaazami/jdate

how to use

```php <?php, (*3)

require 'vendor/autoload.php';, (*4)

use p3ym4n\JDate\JDate;, (*5)

JDate::now(); //1395-11-08 16:51:08 JDate::today(); //1395-11-08 00:00:00 JDate::tomorrow(); //1395-11-09 00:00:00 JDate::createFromTimestamp(1485523813); //1395-11-08 17:00:13 JDate::create(1395, 11, 11, 12, 13, 36); //1395-11-11 12:13:36 JDate::createFromFormat('Y/n/j', '1395/12/30'); //1395-12-30 17:01:21, (*6)

$carbon = new Carbon\Carbon(); $jdate = JDate::createFromCarbon($carbon); //1395-11-08 17:32:43, (*7)

//Some Relative Modifiers... $jdate->startOfDay(); //1395-11-08 00:00:00 $jdate->startOfMonth(); //1395-11-01 00:00:00 $jdate->startOfYear(); //1395-01-01 00:00:00 $jdate->startOfDecade(); //1390-01-01 00:00:00 $jdate->startOfCentury(); //1300-01-01 00:00:00, (*8)

$jdate->endOfDay(); //1395-11-08 23:59:59 $jdate->endOfMonth(); //1395-11-30 23:59:59 $jdate->endOfYear(); //1395-12-30 23:59:59 (remember that 1395 is a leap year) $jdate->endOfDecade(); //1399-12-30 23:59:59 $jdate->endOfCentury(); //1399-12-30 23:59:59, (*9)

//Other Modifiers... $jdate->addDay(2); //1395-11-10 17:32:43 $jdate->subMonth(); //1395-10-10 17:32:43 $jdate->addHours(3); //1395-10-10 20:32:43 ```, (*10)

info

  • This package is compatible with laravel 5 .

The Versions

20/11 2017

dev-master

9999999-dev

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel date time datetime jalali shamsi hijri

20/11 2017

1.0.7

1.0.7.0

Date converter from Jalali to Georgian and vice versa. It has Carbon instance inside and it's Laravel friendly.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel date time datetime jalali shamsi hijri

20/10 2017

v1.0.6

1.0.6.0

A simple php date converter from Jalali to Georgian calendar and vice versa.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel date time datetime jalali shamsi hijri

04/03 2017

v1.0.5

1.0.5.0

A simple php date converter from Jalali to Georgian calendar and vice versa.

  Sources   Download

MIT

The Requires

 

laravel date time datetime jalali shamsi hijri

28/01 2017

v1.0.4

1.0.4.0

A simple php date converter from Jalali to Georgian calendar and vice versa.

  Sources   Download

MIT

The Requires

 

laravel date time datetime jalali shamsi hijri

27/01 2017

v1.0.1

1.0.1.0

A simple php date converter from Jalali to Georgian calendar and vice versa.

  Sources   Download

MIT

The Requires

 

laravel date time datetime jalali shamsi hijri