Свойство | Type | Description | |
---|---|---|---|
$stringFormat | string | Date format to be used by {@link __toString()}. | |
$value | DateTime | Date content. |
Méthode | Description | |
---|---|---|
__construct ( DateTime $dateTime = null ) | Construct a new Value object and initialize with $dateTime. | |
__toString ( ) | ||
fromString ( string $dateString ) : |
Creates a Value from the given $dateString. | |
fromTimestamp ( integer $timestamp ) : |
Creates a Value from the given $timestamp. |
public __construct ( DateTime $dateTime = null ) | ||
$dateTime | DateTime | Date/Time as a DateTime object |
public static fromString ( string $dateString ) : |
||
$dateString | string | |
Résultat |
public static fromTimestamp ( integer $timestamp ) : |
||
$timestamp | integer | |
Résultat |
public string $stringFormat | ||
Résultat | string |