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

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.