1<?php
2
3/** @generate-function-entries */
4
5class IntlDateFormatter
6{
7    /**
8     * @param IntlTimeZone|DateTimeZone|string|null $timezone
9     * @param IntlCalendar|int|null $calendar
10     */
11    public function __construct(?string $locale, int $dateType, int $timeType, $timezone = null, $calendar = null, ?string $pattern = null) {}
12
13    /**
14     * @param IntlTimeZone|DateTimeZone|string|null $timezone
15     * @return IntlDateFormatter|null
16     * @alias datefmt_create
17     */
18    public static function create(?string $locale, int $dateType, int $timeType, $timezone = null, IntlCalendar|int|null $calendar = null, ?string $pattern = null) {}
19
20    /**
21     * @return int|false
22     * @alias datefmt_get_datetype
23     */
24    public function getDateType() {}
25
26    /**
27     * @return int|false
28     * @alias datefmt_get_timetype
29     */
30    public function getTimeType() {}
31
32    /**
33     * @return int|false
34     * @alias datefmt_get_calendar
35     */
36    public function getCalendar() {}
37
38    /**
39     * @return bool
40     * @alias datefmt_set_calendar
41     */
42    public function setCalendar(IntlCalendar|int|null $calendar) {}
43
44    /**
45     * @return string|false
46     * @alias datefmt_get_timezone_id
47     */
48    public function getTimeZoneId() {}
49
50    /**
51     * @return IntlCalendar|false|null
52     * @alias datefmt_get_calendar_object
53     */
54    public function getCalendarObject() {}
55
56    /**
57     * @return IntlTimeZone|false
58     * @alias datefmt_get_timezone
59     */
60    public function getTimeZone() {}
61
62    /**
63     * @param IntlTimeZone|DateTimeZone|string|null $timezone
64     * @return bool|null
65     * @alias datefmt_set_timezone
66     */
67    public function setTimeZone($timezone) {}
68
69    /**
70     * @return bool
71     * @alias datefmt_set_pattern
72     */
73    public function setPattern(string $pattern) {}
74
75    /**
76     * @return string|false
77     * @alias datefmt_get_pattern
78     */
79    public function getPattern() {}
80
81    /**
82     * @return string|false
83     * @alias datefmt_get_locale
84     */
85    public function getLocale(int $type = ULOC_ACTUAL_LOCALE) {}
86
87    /**
88     * @return void
89     * @alias datefmt_set_lenient
90     */
91    public function setLenient(bool $lenient) {}
92
93    /**
94     * @return bool
95     * @alias datefmt_is_lenient
96     */
97    public function isLenient() {}
98
99    /**
100     * @param IntlCalendar|DateTimeInterface|array|string|int|float $datetime
101     * @return string|false
102     * @alias datefmt_format
103     */
104    public function format($datetime) {}
105
106    /**
107     * @param IntlCalendar|DateTimeInterface $datetime
108     * @param array|int|string|null $format
109     * @return string|false
110     * @alias datefmt_format_object
111     */
112    public static function formatObject($datetime, $format = null, ?string $locale = null) {}
113
114    /**
115     * @param int $offset
116     * @return int|float|false
117     * @alias datefmt_parse
118     */
119    public function parse(string $string, &$offset = null) {}
120
121    /**
122     * @param int $offset
123     * @return array|false
124     * @alias datefmt_localtime
125     */
126    public function localtime(string $string, &$offset = null) {}
127
128    /**
129     * @return int
130     * @alias datefmt_get_error_code
131     */
132    public function getErrorCode() {}
133
134    /**
135     * @return string
136     * @alias datefmt_get_error_message
137     */
138    public function getErrorMessage() {}
139}
140