Метод |
Описание |
|
__construct ( string | integer $hours, string | integer $minutes, string | integer $seconds ) |
Creates a new time. |
|
fromDate ( DateTime $date ) : Time |
Creates a new time from a date. |
|
fromString ( string $time ) : Time |
Creates a new time from a string. |
|
getHours ( ) : integer |
Gets the hours. |
|
getMinutes ( ) : integer |
Gets the minutes. |
|
getSeconds ( ) : integer |
Gets the seconds. |
|
isAfterOrEqual ( Time $other ) : boolean |
Checks if this time is after or equal to an other time. |
|
isBeforeOrEqual ( Time $other ) : boolean |
Checks if this time is before or equal to an other time. |
|
jsonSerialize ( ) |
|
|
toInteger ( ) : integer |
Returns an integer representation of the time. |
|
toString ( ) : integer |
Returns an integer representation of the time. |
|