IntlTimeZone::getOffset

(PHP 5.5.0, PECL >= 3.0.0a1)

IntlTimeZone::getOffsetGet 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

Коментарии

Автор:
/**
 * 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.
 */
2018-07-13 12:22:41
http://php5.kiev.ua/manual/ru/intltimezone.getoffset.html

    Поддержать сайт на родительском проекте КГБ