trait Illuminate / Support / InteractsWithTime

InteractsWithTime

Methods

protected

secondsUntil ( $delay ) : int

Get the number of seconds until the given DateTime.

Parameters

protected

availableAt ( $delay ) : int

Get the "available at" UNIX timestamp.

Parameters

protected

parseDateInterval ( $delay ) : DateTimeInterface |int

If the given value is an interval, convert it to a DateTime instance.

Parameters

protected

currentTime ( ) : int

Get the current system time as a UNIX timestamp.