1 | <?php |
||
13 | class DateTimeImmutable extends \DateTimeImmutable |
||
14 | { |
||
15 | 2 | public function __construct($time = 'now') |
|
23 | |||
24 | /** |
||
25 | * @throws Exception |
||
26 | */ |
||
27 | public static function instance(DateTimeInterface $dt) : DateTimeImmutable |
||
35 | |||
36 | /** |
||
37 | * @throws Exception |
||
38 | */ |
||
39 | public static function createFromFormat($format, $time, $timezone = null) : DateTimeImmutable |
||
48 | |||
49 | /** |
||
50 | * @param DateTime $dateTime |
||
51 | * @return DateTimeImmutable |
||
52 | */ |
||
53 | public static function createFromMutable($dateTime) : DateTimeImmutable |
||
58 | |||
59 | /** |
||
60 | * @throws Exception |
||
61 | */ |
||
62 | public static function createFromTimestamp($timestamp) : DateTimeImmutable |
||
72 | |||
73 | /** |
||
74 | * @throws Exception |
||
75 | */ |
||
76 | public static function createFromJson(string $json) : DateTimeImmutable |
||
88 | |||
89 | /** |
||
90 | * Returns the default Dandomain time zone |
||
91 | * |
||
92 | * @return DateTimeZone |
||
93 | */ |
||
94 | 1 | protected static function timeZone() : DateTimeZone |
|
98 | } |
||
99 |