tikasoft / yii2-jalali
Hijri_Shamsi,Solar(Jalali) Date and Time Functions
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tikasoft/yii2-jalali
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);```