Property | Type | Description | |
---|---|---|---|
$stringFormat | string | Date format to be used by {@link __toString()}. | |
$value | DateTime | Date content. |
Method | 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 | |
return |
public static fromTimestamp ( integer $timestamp ) : |
||
$timestamp | integer | |
return |
public string $stringFormat | ||
return | string |