Property | Type | Description | |
---|---|---|---|
$stringFormat | string | Time format to be used by {@link __toString()}. | |
$time | integer | null | Time of day as number of seconds. |
Method | Description | |
---|---|---|
__construct ( mixed $seconds = null ) | Construct a new Value object and initialize it with $seconds as number of seconds from beginning of day. | |
__toString ( ) | ||
fromDateTime ( DateTime $dateTime ) : |
Creates a Value from the given $dateTime. | |
fromString ( string $timeString ) : |
Creates a Value from the given $timeString. | |
fromTimestamp ( integer $timestamp ) : static | Creates a Value from the given $timestamp. |
public __construct ( mixed $seconds = null ) | ||
$seconds | mixed |
public static fromDateTime ( DateTime $dateTime ) : |
||
$dateTime | DateTime | |
return |
public static fromString ( string $timeString ) : |
||
$timeString | string | |
return |
public static fromTimestamp ( integer $timestamp ) : static | ||
$timestamp | integer | |
return | static |
public string $stringFormat | ||
return | string |