123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503 |
- <?php
- /** @generate-class-entries */
- function strtotime(string $datetime, ?int $baseTimestamp = null): int|false {}
- /** @refcount 1 */
- function date(string $format, ?int $timestamp = null): string {}
- function idate(string $format, ?int $timestamp = null): int|false {}
- /** @refcount 1 */
- function gmdate(string $format, ?int $timestamp = null): string {}
- function mktime(
- int $hour, ?int $minute = null, ?int $second = null,
- ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
- function gmmktime(
- int $hour, ?int $minute = null, ?int $second = null,
- ?int $month = null, ?int $day = null, ?int $year = null): int|false {}
- function checkdate(int $month, int $day, int $year): bool {}
- /**
- * @refcount 1
- * @deprecated
- */
- function strftime(string $format, ?int $timestamp = null): string|false {}
- /**
- * @refcount 1
- * @deprecated
- */
- function gmstrftime(string $format, ?int $timestamp = null): string|false {}
- function time(): int {}
- /**
- * @return array<int|string, int>
- * @refcount 1
- */
- function localtime(?int $timestamp = null, bool $associative = false): array {}
- /**
- * @return array<int|string, int|string>
- * @refcount 1
- */
- function getdate(?int $timestamp = null): array {}
- /** @refcount 1 */
- function date_create(string $datetime = "now", ?DateTimeZone $timezone = null): DateTime|false {}
- /** @refcount 1 */
- function date_create_immutable(
- string $datetime = "now", ?DateTimeZone $timezone = null): DateTimeImmutable|false {}
- /** @refcount 1 */
- function date_create_from_format(
- string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false {}
- /** @refcount 1 */
- function date_create_immutable_from_format(
- string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {}
- /**
- * @return array<string, mixed>
- * @refcount 1
- */
- function date_parse(string $datetime): array {}
- /**
- * @return array<string, mixed>
- * @refcount 1
- */
- function date_parse_from_format(string $format, string $datetime): array {}
- /**
- * @return array<string, int|array>|false
- * @refcount 1
- */
- function date_get_last_errors(): array|false {}
- /** @refcount 1 */
- function date_format(DateTimeInterface $object, string $format): string {}
- function date_modify(DateTime $object, string $modifier): DateTime|false {}
- function date_add(DateTime $object, DateInterval $interval): DateTime {}
- function date_sub(DateTime $object, DateInterval $interval): DateTime {}
- /** @refcount 1 */
- function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
- function date_timezone_set(DateTime $object, DateTimeZone $timezone): DateTime {}
- function date_offset_get(DateTimeInterface $object): int {}
- /** @refcount 1 */
- function date_diff(
- DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false): DateInterval {}
- function date_time_set(
- DateTime $object, int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTime {}
- function date_date_set(DateTime $object, int $year, int $month, int $day): DateTime {}
- function date_isodate_set(DateTime $object, int $year, int $week, int $dayOfWeek = 1): DateTime {}
- function date_timestamp_set(DateTime $object, int $timestamp): DateTime {}
- function date_timestamp_get(DateTimeInterface $object): int {}
- /** @refcount 1 */
- function timezone_open(string $timezone): DateTimeZone|false {}
- /** @refcount 1 */
- function timezone_name_get(DateTimeZone $object): string {}
- /** @refcount 1 */
- function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST = -1): string|false {}
- function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime): int {}
- /**
- * @return array<int, array>|false
- * @refcount 1
- */
- function timezone_transitions_get(
- DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
- /**
- * @return array<string, float|string>|false
- * @refcount 1
- */
- function timezone_location_get(DateTimeZone $object): array|false {}
- /**
- * @return array<int, string>
- * @refcount 1
- */
- function timezone_identifiers_list(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null): array {}
- /**
- * @return array<string, array>
- * @refcount 1
- */
- function timezone_abbreviations_list(): array {}
- /** @refcount 1 */
- function timezone_version_get(): string {}
- /** @refcount 1 */
- function date_interval_create_from_date_string(string $datetime): DateInterval|false {}
- /** @refcount 1 */
- function date_interval_format(DateInterval $object, string $format): string {}
- function date_default_timezone_set(string $timezoneId): bool {}
- /** @refcount 1 */
- function date_default_timezone_get(): string {}
- /**
- * @refcount 1
- * @deprecated
- */
- function date_sunrise(
- int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING,
- ?float $latitude = null, ?float $longitude = null, ?float $zenith = null,
- ?float $utcOffset = null): string|int|float|false {}
- /**
- * @refcount 1
- * @deprecated
- */
- function date_sunset(
- int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING,
- ?float $latitude = null, ?float $longitude = null, ?float $zenith = null,
- ?float $utcOffset = null): string|int|float|false {}
- /**
- * @return array<string, bool|int>
- * @refcount 1
- */
- function date_sun_info(int $timestamp, float $latitude, float $longitude): array {}
- interface DateTimeInterface
- {
- /** @tentative-return-type */
- public function format(string $format): string;
- /** @tentative-return-type */
- public function getTimezone(): DateTimeZone|false;
- /** @tentative-return-type */
- public function getOffset(): int;
- /** @tentative-return-type */
- public function getTimestamp(): int;
- /** @tentative-return-type */
- public function diff(DateTimeInterface $targetObject, bool $absolute = false): DateInterval;
- /** @tentative-return-type */
- public function __wakeup(): void;
- }
- class DateTime implements DateTimeInterface
- {
- public function __construct(string $datetime = "now", ?DateTimeZone $timezone = null) {}
- /** @tentative-return-type */
- public function __wakeup(): void {}
- /** @tentative-return-type */
- public static function __set_state(array $array): DateTime {}
- /** @tentative-return-type */
- public static function createFromImmutable(DateTimeImmutable $object): DateTime {}
- public static function createFromInterface(DateTimeInterface $object): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_create_from_format
- */
- public static function createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false {}
- /**
- * @return array<string, int|array>|false
- * @tentative-return-type
- * @alias date_get_last_errors
- */
- public static function getLastErrors(): array|false {}
- /**
- * @tentative-return-type
- * @alias date_format
- */
- public function format(string $format): string {}
- /**
- * @tentative-return-type
- * @alias date_modify
- */
- public function modify(string $modifier): DateTime|false {}
- /**
- * @tentative-return-type
- * @alias date_add
- */
- public function add(DateInterval $interval): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_sub
- */
- public function sub(DateInterval $interval): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_timezone_get
- */
- public function getTimezone(): DateTimeZone|false {}
- /**
- * @tentative-return-type
- * @alias date_timezone_set
- */
- public function setTimezone(DateTimeZone $timezone): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_offset_get
- */
- public function getOffset(): int {}
- /**
- * @tentative-return-type
- * @alias date_time_set
- */
- public function setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_date_set
- */
- public function setDate(int $year, int $month, int $day): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_isodate_set
- */
- public function setISODate(int $year, int $week, int $dayOfWeek = 1): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_timestamp_set
- */
- public function setTimestamp(int $timestamp): DateTime {}
- /**
- * @tentative-return-type
- * @alias date_timestamp_get
- */
- public function getTimestamp(): int {}
- /**
- * @tentative-return-type
- * @alias date_diff
- */
- public function diff(DateTimeInterface $targetObject, bool $absolute = false): DateInterval {}
- }
- class DateTimeImmutable implements DateTimeInterface
- {
- public function __construct(string $datetime = "now", ?DateTimeZone $timezone = null) {}
- /** @tentative-return-type */
- public function __wakeup(): void {}
- /** @tentative-return-type */
- public static function __set_state(array $array): DateTimeImmutable {}
- /**
- * @tentative-return-type
- * @alias date_create_immutable_from_format
- */
- public static function createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false {}
- /**
- * @return array<string, int|array>|false
- * @tentative-return-type
- * @alias date_get_last_errors
- */
- public static function getLastErrors(): array|false {}
- /**
- * @tentative-return-type
- * @alias date_format
- */
- public function format(string $format): string {}
- /**
- * @tentative-return-type
- * @alias date_timezone_get
- */
- public function getTimezone(): DateTimeZone|false {}
- /**
- * @tentative-return-type
- * @alias date_offset_get
- */
- public function getOffset(): int {}
- /**
- * @tentative-return-type
- * @alias date_timestamp_get
- */
- public function getTimestamp(): int {}
- /**
- * @tentative-return-type
- * @alias date_diff
- */
- public function diff(DateTimeInterface $targetObject, bool $absolute = false): DateInterval {}
- /** @tentative-return-type */
- public function modify(string $modifier): DateTimeImmutable|false {}
- /** @tentative-return-type */
- public function add(DateInterval $interval): DateTimeImmutable {}
- /** @tentative-return-type */
- public function sub(DateInterval $interval): DateTimeImmutable {}
- /** @tentative-return-type */
- public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {}
- /** @tentative-return-type */
- public function setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTimeImmutable {}
- /** @tentative-return-type */
- public function setDate(int $year, int $month, int $day): DateTimeImmutable {}
- /** @tentative-return-type */
- public function setISODate(int $year, int $week, int $dayOfWeek = 1): DateTimeImmutable {}
- /** @tentative-return-type */
- public function setTimestamp(int $timestamp): DateTimeImmutable {}
- /** @tentative-return-type */
- public static function createFromMutable(DateTime $object): DateTimeImmutable {}
- public static function createFromInterface(DateTimeInterface $object): DateTimeImmutable {}
- }
- class DateTimeZone
- {
- public function __construct(string $timezone) {}
- /**
- * @tentative-return-type
- * @alias timezone_name_get
- */
- public function getName(): string {}
- /**
- * @tentative-return-type
- * @alias timezone_offset_get
- */
- public function getOffset(DateTimeInterface $datetime): int {}
- /**
- * @return array<int, array>|false
- * @tentative-return-type
- * @alias timezone_transitions_get
- */
- public function getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
- /**
- * @return array<string, float|string>|false
- * @tentative-return-type
- * @alias timezone_location_get
- */
- public function getLocation(): array|false {}
- /**
- * @return array<string, array>
- * @tentative-return-type
- * @alias timezone_abbreviations_list
- */
- public static function listAbbreviations(): array {}
- /**
- * @return array<int, string>
- * @tentative-return-type
- * @alias timezone_identifiers_list
- */
- public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null): array {}
- /** @tentative-return-type */
- public function __wakeup(): void {}
- /** @tentative-return-type */
- public static function __set_state(array $array): DateTimeZone {}
- }
- class DateInterval
- {
- public function __construct(string $duration) {}
- /**
- * @tentative-return-type
- * @alias date_interval_create_from_date_string
- */
- public static function createFromDateString(string $datetime): DateInterval|false {}
- /**
- * @tentative-return-type
- * @alias date_interval_format
- */
- public function format(string $format): string {}
- /** @tentative-return-type */
- public function __wakeup(): void {}
- /** @tentative-return-type */
- public static function __set_state(array $array): DateInterval {}
- }
- class DatePeriod implements IteratorAggregate
- {
- /**
- * @param DateTimeInterface|string $start
- * @param DateInterval|int $interval
- * @param DateTimeInterface|int $end
- * @param int $options
- */
- public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN) {}
- /** @tentative-return-type */
- public function getStartDate(): DateTimeInterface {}
- /** @tentative-return-type */
- public function getEndDate(): ?DateTimeInterface {}
- /** @tentative-return-type */
- public function getDateInterval(): DateInterval {}
- /** @tentative-return-type */
- public function getRecurrences(): ?int {}
- /** @tentative-return-type */
- public function __wakeup(): void {}
- /** @tentative-return-type */
- public static function __set_state(array $array): DatePeriod {}
- public function getIterator(): Iterator {}
- }
|