developit/yii2-pdate

yii2 intl persian date

2.0 2017-03-11 14:32 UTC

README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist developit/yii2-pdate "~2.0"

or add

"developit/yii2-pdate": "~2.0"

to the require section of your composer.json file.

Usage

add to component:

'date' => [
    'class' => 'developit\pdate\DateTime',
],

And use:

Yii::$app->date->pdate(time(), 'HH:mm - yyyy/MM/dd')