tikasoft / yii2-jalali
Hijri_Shamsi,Solar(Jalali) Date and Time Functions
v1.0
2017-04-07 20:24 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2023-04-07 12:51:08 UTC
README
Hijri_Shamsi,Solar(Jalali) Date and Time Functions
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tikasoft/yii2-jalali "*"
or add
"tikasoft/yii2-jalali": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
in main-local.php add jDate to components array : 'components' => [ 'jDate' => [ 'class' => 'tikasoft\jalali\jDate', ], ], for use : $t=time(); echo \yii::$app->jDate->dateTime("Y-m-d H:i:s",$t);```