-
Notifications
You must be signed in to change notification settings - Fork 2
Modifiers
Majid Ataee edited this page Apr 5, 2020
·
3 revisions
Set time 00:00:00
of the day.
$today->jalali('1399/01/15 11:22:00')->startOfDay()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/15 00:00:00
Set time 23:59:59
of the day.
$today->jalali('1399/01/15 11:22:00')->endOfDay()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/15 23:59:59
Set day to 1 of the month and set time as 00:00:00
.
$today->jalali('1399/01/15 11:22:00')->startOfMonth()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/01 00:00:00
Set day to latest day of the month and set time as 23:59:59
.
$today->jalali('1399/01/15 11:22:00')->endOfMonth()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/31 23:59:59
Sets the day and the month to 1 of the year and set time as 00:00:00
.
$today->jalali('1399/01/15 11:22:00')->startOfYear()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/01 00:00:00
Set day to latest day of the year and set time as 23:59:59
.
$today->jalali('1399/01/15 11:22:00')->endOfYear()->format('yyyy/MM/dd hh:mm:ss');
// 1399/12/30 23:59:59
Sets the Saturday of the same week and set time as 00:00:00
.
$today->jalali('1399/01/15 11:22:00')->startOfYear()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/09 00:00:00
Set the Friday of the same week and set time as 23:59:59
.
$today->jalali('1399/01/15 11:22:00')->endOfYear()->format('yyyy/MM/dd hh:mm:ss');
// 1399/01/15 23:59:59
Pasoonate