DateTime::getOffset DateTimeImmutable::getOffset DateTimeInterface::getOffset date_offset_get Возвращает смещение временной зоны &reftitle.description; &style.oop; public intDateTime::getOffset public intDateTimeImmutable::getOffset public intDateTimeInterface::getOffset &style.procedural; intdate_offset_get DateTimeInterfaceobject Возвращает смещение временной зоны. &reftitle.parameters; &date.datetime.description; &reftitle.returnvalues; В случае успешного выполнения возвращает смещение часовой зоны относительно UTC в секундах. &reftitle.changelog; &Version; &Description; 8.0.0 До этой версии, в случае возникновения ошибки возвращалось &false;. &reftitle.examples; Пример использования <function>DateTime::getOffset</function> &style.oop; getOffset() . "\n"; echo $summer->getOffset() . "\n"; ?> ]]> &style.procedural; ]]> &examples.outputs; Замечание: -18000 = -5 часов, -14400 = -4 часа.