timezone.stub.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /** @generate-class-entries */
  3. class IntlTimeZone
  4. {
  5. private function __construct() {}
  6. /**
  7. * @tentative-return-type
  8. * @alias intltz_count_equivalent_ids
  9. */
  10. public static function countEquivalentIDs(string $timezoneId): int|false {}
  11. /**
  12. * @tentative-return-type
  13. * @alias intltz_create_default
  14. */
  15. public static function createDefault(): IntlTimeZone {}
  16. /**
  17. * @param IntlTimeZone|string|int|float|null $countryOrRawOffset
  18. * @tentative-return-type
  19. * @alias intltz_create_enumeration
  20. */
  21. public static function createEnumeration($countryOrRawOffset = null): IntlIterator|false {}
  22. /**
  23. * @tentative-return-type
  24. * @alias intltz_create_time_zone
  25. */
  26. public static function createTimeZone(string $timezoneId): ?IntlTimeZone {}
  27. /**
  28. * @tentative-return-type
  29. * @alias intltz_create_time_zone_id_enumeration
  30. */
  31. public static function createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false {}
  32. /**
  33. * @tentative-return-type
  34. * @alias intltz_from_date_time_zone
  35. */
  36. public static function fromDateTimeZone(DateTimeZone $timezone): ?IntlTimeZone {}
  37. /**
  38. * @param bool $isSystemId
  39. * @tentative-return-type
  40. * @alias intltz_get_canonical_id
  41. */
  42. public static function getCanonicalID(string $timezoneId, &$isSystemId = null): string|false {}
  43. /**
  44. * @tentative-return-type
  45. * @alias intltz_get_display_name
  46. */
  47. public function getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false {}
  48. /**
  49. * @tentative-return-type
  50. * @alias intltz_get_dst_savings
  51. */
  52. public function getDSTSavings(): int {}
  53. /**
  54. * @tentative-return-type
  55. * @alias intltz_get_equivalent_id
  56. */
  57. public static function getEquivalentID(string $timezoneId, int $offset): string|false {}
  58. /**
  59. * @tentative-return-type
  60. * @alias intltz_get_error_code
  61. */
  62. public function getErrorCode(): int|false {}
  63. /**
  64. * @tentative-return-type
  65. * @alias intltz_get_error_message
  66. */
  67. public function getErrorMessage(): string|false {}
  68. /**
  69. * @tentative-return-type
  70. * @alias intltz_get_gmt
  71. */
  72. public static function getGMT(): IntlTimeZone {}
  73. /**
  74. * @tentative-return-type
  75. * @alias intltz_get_id
  76. */
  77. public function getID(): string|false {}
  78. /**
  79. * @param int $rawOffset
  80. * @param int $dstOffset
  81. * @tentative-return-type
  82. * @alias intltz_get_offset
  83. */
  84. public function getOffset(float $timestamp, bool $local, &$rawOffset, &$dstOffset): bool {}
  85. /**
  86. * @tentative-return-type
  87. * @alias intltz_get_raw_offset
  88. */
  89. public function getRawOffset(): int {}
  90. /**
  91. * @tentative-return-type
  92. * @alias intltz_get_region
  93. */
  94. public static function getRegion(string $timezoneId): string|false {}
  95. /**
  96. * @tentative-return-type
  97. * @alias intltz_get_tz_data_version
  98. */
  99. public static function getTZDataVersion(): string|false {}
  100. /**
  101. * @tentative-return-type
  102. * @alias intltz_get_unknown
  103. */
  104. public static function getUnknown(): IntlTimeZone {}
  105. #if U_ICU_VERSION_MAJOR_NUM >= 52
  106. /**
  107. * @tentative-return-type
  108. * @alias intltz_get_windows_id
  109. */
  110. public static function getWindowsID(string $timezoneId): string|false {}
  111. /**
  112. * @tentative-return-type
  113. * @alias intltz_get_id_for_windows_id
  114. */
  115. public static function getIDForWindowsID(string $timezoneId, ?string $region = null): string|false {}
  116. #endif
  117. /**
  118. * @tentative-return-type
  119. * @alias intltz_has_same_rules
  120. */
  121. public function hasSameRules(IntlTimeZone $other): bool {}
  122. /**
  123. * @tentative-return-type
  124. * @alias intltz_to_date_time_zone
  125. */
  126. public function toDateTimeZone(): DateTimeZone|false {}
  127. /**
  128. * @tentative-return-type
  129. * @alias intltz_use_daylight_time
  130. */
  131. public function useDaylightTime(): bool {}
  132. }