trait
Illuminate
/
Support
/
InteractsWithTime
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
InteractsWithTime
Methods
protected
secondsUntil ( $delay ) : int
Get the number of seconds until the given DateTime.
Parameters
- $delay DateTimeInterface |DateInterval |int
protected
availableAt ( $delay ) : int
Get the "available at" UNIX timestamp.
Parameters
- $delay DateTimeInterface |DateInterval |int
protected
parseDateInterval ( $delay ) : DateTimeInterface |int
If the given value is an interval, convert it to a DateTime instance.
Parameters
- $delay DateTimeInterface |DateInterval |int
protected
currentTime ( ) : int
Get the current system time as a UNIX timestamp.
protected
runTimeForHumans ( $startTime , $endTime ) : string
Given a start time, format the total run time for human readability.
Parameters
- $startTime float
- $endTime float