php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
dateformat.stub.php
Go to the documentation of this file.
1<?php
2
4
7{
9 public const int FULL = UNKNOWN;
11 public const int LONG = UNKNOWN;
13 public const int MEDIUM = UNKNOWN;
15 public const int SHORT = UNKNOWN;
17 public const int NONE = UNKNOWN;
19 public const int RELATIVE_FULL = UNKNOWN;
21 public const int RELATIVE_LONG = UNKNOWN;
23 public const int RELATIVE_MEDIUM = UNKNOWN;
25 public const int RELATIVE_SHORT = UNKNOWN;
27 public const int PATTERN = UNKNOWN;
28
30 public const int GREGORIAN = UNKNOWN;
32 public const int TRADITIONAL = UNKNOWN;
33
38 public function __construct(
39 ?string $locale,
40 int $dateType = IntlDateFormatter::FULL,
41 int $timeType = IntlDateFormatter::FULL,
42 $timezone = null,
43 $calendar = null,
44 ?string $pattern = null
45 ) {}
46
52 public static function create(
53 ?string $locale,
54 int $dateType = IntlDateFormatter::FULL,
55 int $timeType = IntlDateFormatter::FULL,
56 $timezone = null,
57 IntlCalendar|int|null $calendar = null,
58 ?string $pattern = null
60
65 public function getDateType(): int|false {}
66
71 public function getTimeType(): int|false {}
72
77 public function getCalendar(): int|false {}
78
83 public function setCalendar(IntlCalendar|int|null $calendar): bool {}
84
89 public function getTimeZoneId(): string|false {}
90
95 public function getCalendarObject(): IntlCalendar|false|null {}
96
102
108 public function setTimeZone($timezone): bool {}
109
114 public function setPattern(string $pattern): bool {}
115
120 public function getPattern(): string|false {}
121
126 public function getLocale(int $type = ULOC_ACTUAL_LOCALE): string|false {}
127
132 public function setLenient(bool $lenient): void {}
133
138 public function isLenient(): bool {}
139
145 public function format($datetime): string|false {}
146
153 public static function formatObject($datetime, $format = null, ?string $locale = null): string|false {}
154
160 public function parse(string $string, &$offset = null): int|float|false {}
161
165 public function parseToCalendar(string $string, &$offset = null): int|float|false {}
166
173 public function localtime(string $string, &$offset = null): array|false {}
174
179 public function getErrorCode(): int {}
180
185 public function getErrorMessage(): string {}
186}
setPattern(string $pattern)
parse(string $string, &$offset=null)
__construct(?string $locale, int $dateType=IntlDateFormatter::FULL, int $timeType=IntlDateFormatter::FULL, $timezone=null, $calendar=null, ?string $pattern=null)
setCalendar(IntlCalendar|int|null $calendar)
static formatObject($datetime, $format=null, ?string $locale=null)
parseToCalendar(string $string, &$offset=null)
getLocale(int $type=ULOC_ACTUAL_LOCALE)
localtime(string $string, &$offset=null)
setLenient(bool $lenient)
static create(?string $locale, int $dateType=IntlDateFormatter::FULL, int $timeType=IntlDateFormatter::FULL, $timezone=null, IntlCalendar|int|null $calendar=null, ?string $pattern=null)
const ULOC_ACTUAL_LOCALE
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))