IntlTimeZone::getOffset
(PHP 5.5.0, PECL >= 3.0.0a1)
IntlTimeZone::getOffset — Get the time zone raw and GMT offset for the given moment in time
Description
public integer IntlTimeZone::getOffset
( float
$date
, bool $local
, integer &$rawOffset
, integer &$dstOffset
)
Warning
This function is currently not documented; only its argument list is available.
Parameters
-
date
-
-
local
-
-
rawOffset
-
-
dstOffset
-
Return Values
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Поддержка языков и кодировок
- Internationalization Functions
- Функция IntlTimeZone::countEquivalentIDs() - Get the number of IDs in the equivalency group that includes the given ID
- Функция IntlTimeZone::createDefault() - Create a new copy of the default timezone for this host
- IntlTimeZone::createEnumeration
- Функция IntlTimeZone::createTimeZone() - Create a timezone object for the given ID
- Функция IntlTimeZone::fromDateTimeZone() - Create a timezone object from DateTimeZone
- Функция IntlTimeZone::getCanonicalID() - Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID
- Функция IntlTimeZone::getDisplayName() - Get a name of this time zone suitable for presentation to the user
- Функция IntlTimeZone::getDSTSavings() - Get the amount of time to be added to local standard time to get local wall clock time
- Функция IntlTimeZone::getEquivalentID() - Get an ID in the equivalency group that includes the given ID
- Функция IntlTimeZone::getErrorCode() - Get last error code on the object
- Функция IntlTimeZone::getErrorMessage() - Get last error message on the object
- Функция IntlTimeZone::getGMT() - Create GMT (UTC) timezone
- Функция IntlTimeZone::getID() - Get timezone ID
- Функция IntlTimeZone::getOffset() - Get the time zone raw and GMT offset for the given moment in time
- Функция IntlTimeZone::getRawOffset() - Get the raw GMT offset (before taking daylight savings time into account
- Функция IntlTimeZone::getTZDataVersion() - Get the timezone data version currently used by ICU
- Функция IntlTimeZone::hasSameRules() - Check if this zone has the same rules and offset as another zone
- Функция IntlTimeZone::toDateTimeZone() - Convert to DateTimeZone object
- Функция IntlTimeZone::useDaylightTime() - Check if this time zone uses daylight savings time
Коментарии
/**
* Function IntlTimeZone::getOffset()
* @link http://icu-project.org/apiref/icu4c/classicu_1_1TimeZone.html#afcbc1c48bf0b453b0123c4cb75d20e96
* @param float $date
* moment in time for which to return offsets, in units of milliseconds from
* January 1, 1970 0:00 GMT, either GMT time or local wall time, depending on
* `local'.
* @param bool $local
* if true, `date' is local wall time; otherwise it is in GMT time.
* @param int &$rawOffset
* output parameter to receive the raw offset, that is, the offset not
* including DST adjustments
* @param int &$dstOffset
* output parameter to receive the DST offset, that is, the offset to be added
* to `rawOffset' to obtain the total offset between local and GMT time. If
* DST is not in effect, this value is zero; otherwise it is a positive value,
* typically one hour.
*/