trait Boundaries
Trait Boundaries.
startOf, endOf and derived method for each unit.
Depends on the following properties:
Properties
int | $year | ||
int | $month | ||
int | $daysInMonth | ||
int | $quarter | Depends on the following methods: |
Methods
Resets the time to 00:00:00 start of day
Resets the time to 23:59:59.999999 end of day
Resets the date to the first day of the month and the time to 00:00:00
Resets the date to end of the month and time to 23:59:59.999999
Resets the date to the first day of the quarter and the time to 00:00:00
Resets the date to end of the quarter and time to 23:59:59.999999
Resets the date to the first day of the year and the time to 00:00:00
Resets the date to end of the year and time to 23:59:59.999999
Resets the date to the first day of the decade and the time to 00:00:00
Resets the date to end of the decade and time to 23:59:59.999999
Resets the date to the first day of the century and the time to 00:00:00
Resets the date to end of the century and time to 23:59:59.999999
Resets the date to the first day of the millennium and the time to 00:00:00
Resets the date to end of the millennium and time to 23:59:59.999999
Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.999999
Modify to start of current hour, minutes and seconds become 0
Modify to end of current hour, minutes and seconds become 59
Modify to start of current minute, seconds become 0
Modify to end of current minute, seconds become 59
Modify to start of current second, microseconds become 0
Modify to end of current second, microseconds become 999999
Modify to start of current given unit.
Modify to end of current given unit.
Details
at line46
Boundaries
startOfDay()
Resets the time to 00:00:00 start of day
at line61
Boundaries
endOfDay()
Resets the time to 23:59:59.999999 end of day
at line76
Boundaries
startOfMonth()
Resets the date to the first day of the month and the time to 00:00:00
at line91
Boundaries
endOfMonth()
Resets the date to end of the month and time to 23:59:59.999999
at line106
Boundaries
startOfQuarter()
Resets the date to the first day of the quarter and the time to 00:00:00
at line123
Boundaries
endOfQuarter()
Resets the date to end of the quarter and time to 23:59:59.999999
at line138
Boundaries
startOfYear()
Resets the date to the first day of the year and the time to 00:00:00
at line153
Boundaries
endOfYear()
Resets the date to end of the year and time to 23:59:59.999999
at line168
Boundaries
startOfDecade()
Resets the date to the first day of the decade and the time to 00:00:00
at line185
Boundaries
endOfDecade()
Resets the date to end of the decade and time to 23:59:59.999999
at line202
Boundaries
startOfCentury()
Resets the date to the first day of the century and the time to 00:00:00
at line219
Boundaries
endOfCentury()
Resets the date to end of the century and time to 23:59:59.999999
at line236
Boundaries
startOfMillennium()
Resets the date to the first day of the millennium and the time to 00:00:00
at line253
Boundaries
endOfMillennium()
Resets the date to end of the millennium and time to 23:59:59.999999
at line274
Boundaries
startOfWeek(int$weekStartsAt =null)
Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
at line293
Boundaries
endOfWeek(int$weekEndsAt =null)
Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.999999
at line308
Boundaries
startOfHour()
Modify to start of current hour, minutes and seconds become 0
at line323
Boundaries
endOfHour()
Modify to end of current hour, minutes and seconds become 59
at line338
Boundaries
startOfMinute()
Modify to start of current minute, seconds become 0
at line353
Boundaries
endOfMinute()
Modify to end of current minute, seconds become 59
at line370
Boundaries
startOfSecond()
Modify to start of current second, microseconds become 0
at line387
Boundaries
endOfSecond()
Modify to end of current second, microseconds become 999999
at line407
Boundaries
startOf(string$unit,array...$params)
Modify to start of current given unit.
at line433
Boundaries
endOf(string$unit,array...$params)
Modify to end of current given unit.