DateTime::getOffset DateTimeImmutable::getOffset DateTimeInterface::getOffset date_offset_get Returns the timezone offset &reftitle.description; &style.oop; public intDateTime::getOffset public intDateTimeImmutable::getOffset public intDateTimeInterface::getOffset &style.procedural; intdate_offset_get DateTimeInterfaceobject Returns the timezone offset. &reftitle.parameters; &date.datetime.description; &reftitle.returnvalues; Returns the timezone offset in seconds from UTC on success &return.falseforfailure;. &reftitle.examples; <function>DateTime::getOffset</function> example &style.oop; getOffset() . "\n"; echo $summer->getOffset() . "\n"; ?> ]]> &style.procedural; ]]> &examples.outputs; Note: -18000 = -5 hours, -14400 = -4 hours.