IntlTimeZone::getOffset
PHP Manual
PHP Manual»IntlTimeZone»IntlTimeZone::getOffset

IntlTimeZone::getOffset

intltz_get_offset

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

IntlTimeZone::getOffset -- intltz_get_offsetGet the time zone raw and GMT offset for the given moment in time

Опис

Об'єктно-орієнтований стиль (method):

public function IntlTimeZone::getOffset(
    float $timestamp,
    bool $local,
    int &$rawOffset,
    int &$dstOffset
): bool

Процедурний стиль:

function intltz_get_offset(
    IntlTimeZone $timezone,
    float $timestamp,
    bool $local,
    int &$rawOffset,
    int &$dstOffset
): bool

Увага

Наразі ця функція не документована. Доступний лише список її параметрів.

Параметри

timestamp

local

rawOffset

dstOffset

Значення, що повертаються

To Top