summaryrefslogtreecommitdiff
path: root/ext/intl/timezone/timezone.stub.php
blob: cf473a91f6956722125f7c5f1fbdd6dbbaca7dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php

class IntlTimeZone
{
    private function __construct() {}

    /** @return int|false */
    public static function countEquivalentIDs(string $zoneId) {}

    /** @return IntlTimeZone */
    public static function createDefault() {}

    /**
     * @param IntlTimeZone|string|int|double|null $countryOrRawOffset
     * @return IntlIterator|false
     */
    public static function createEnumeration($countryOrRawOffset = null) {}

    /** @return ?IntlTimeZone */
    public static function createTimeZone(string $zoneId) {}

    /** @return IntlIterator|false */
    public static function createTimeZoneIDEnumeration(int $zoneType, ?string $region = null, ?int $rawOffset = null) {}

    /** @return ?IntlTimeZone */
    public static function fromDateTimeZone(DateTimeZone $zone) {}

    /** @return string|false */
    public static function getCanonicalID(string $zoneId, &$isSystemID = null) {}

    /** @return string|false */
    public function getDisplayName(bool $isDaylight = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null) {}

    /** @return int */
    public function getDSTSavings() {}

    /** @return string|false */
    public static function getEquivalentID(string $zoneId, int $index) {}

    /** @return int|false */
    public function getErrorCode() {}

    /** @return string|false */
    public function getErrorMessage() {}

    /** @return IntlTimeZone */
    public static function getGMT() {}

    /** @return string|false */
    public function getID() {}

    /** @return bool */
    public function getOffset(float $date, bool $local, &$rawOffset, &$dstOffset) {}

    /** @return int */
    public function getRawOffset() {}

    /** @return string|false */
    public static function getRegion(string $zoneId) {}

    /** @return string|false */
    public static function getTZDataVersion() {}

    /** @return IntlTimeZone */
    public static function getUnknown() {}

#if U_ICU_VERSION_MAJOR_NUM >= 52
    /** @return string|false */
    public static function getWindowsID(string $timezone) {}

    /** @return string|false */
    public static function getIDForWindowsID(string $timezone, string $region = UNKNOWN) {}
#endif
    /** @return bool */
    public function hasSameRules(IntlTimeZone $otherTimeZone) {}

    /** @return DateTimeZone|false */
    public function toDateTimeZone() {}

    /** @return bool */
    public function useDaylightTime() {}
}