프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$date | DateTime | Date content. | |
$stringFormat | string | Date format to be used by {@link __toString()}. |
메소드 | 설명 | |
---|---|---|
__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 as a DateTime object |
public static fromString ( string $dateString ) : |
||
$dateString | string | |
리턴 |
public static fromTimestamp ( integer $timestamp ) : |
||
$timestamp | integer | |
리턴 |
public string $stringFormat | ||
리턴 | string |