this is jdf (jalali date format) extention that use for calcuting jalali date
note: you should install it with composer
php composer.phar require --prefer-dist hooman.mirghasemi/yii2-jdf "*"
...requirements of using this extension (e.g. Yii 2.0.0 or above)...
use hoomanMirghasemi\jdf\Jdf; <?= Jdf::jdate(); <?= Jdf::jmktime(); . . .
if it's help u you can like it