trait
Illuminate
/
Support
/
InteractsWithTime
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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.