Method | Description | |
---|---|---|
__construct ( |
Creates a time interval. | |
contains ( |
Checks if the interval contains the given time. | |
fromString ( string $startTime, string $endTime ) : |
Creates a new interval from time strings. | |
getEnd ( ) : |
Gets the end time. | |
getStart ( ) : |
Gets the start time. | |
jsonSerialize ( ) |
public __construct ( |
||
$start | ||
$end |
public static fromString ( string $startTime, string $endTime ) : |
||
$startTime | string | The start time |
$endTime | string | The end time |
return |