PHP Conference Japan 2024

IntlTimeZone::getRawOffset

intltz_get_raw_offset

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

IntlTimeZone::getRawOffset -- intltz_get_raw_offset取得原始 GMT 位移 (在考慮日光節約時間之前)

說明

物件導向風格 (方法)

public IntlTimeZone::getRawOffset(): int

程序式風格

intltz_get_raw_offset(IntlTimeZone $timezone): int

警告

此函式目前沒有說明文件;僅提供其參數列表。

參數

此函式沒有參數。

傳回值

新增筆記

使用者貢獻的筆記 1 則筆記

匿名
6 年前
回傳值是 UTC 與當地時間的差值,以毫秒為單位。請注意,這表示如果當地時區落後於 UTC,則偏移量為正值;如果當地時區超前於 UTC,則偏移量為負值。
To Top