1 | <?php |
||
21 | class Date extends DateTime |
||
22 | { |
||
23 | /** |
||
24 | * @param mixed $source |
||
25 | * @param string|\DateTimeZone|null $timezone |
||
26 | * |
||
27 | * @return Date|DateTime |
||
28 | */ |
||
29 | static public function from($source, $timezone = null) |
||
38 | |||
39 | /** |
||
40 | * @param string|int|\DateTime $time If time is provided as a numeric value it is used as |
||
41 | * "@{$time}" and the time zone is set to UTC. |
||
42 | * @param \DateTimeZone|string $timezone A {@link \DateTimeZone} object representing the desired |
||
43 | * time zone. If the time zone is empty `utc` is used instead. |
||
44 | */ |
||
45 | public function __construct($time = 'now', $timezone = null) |
||
60 | |||
61 | /** |
||
62 | * Formats the instance according to the RFC 1123. |
||
63 | * |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function __toString() |
||
70 | } |
||
71 |