DateTime::getOffset

PHP 5 >= 5.2.1, PHP 7, PHP 8
DateTime::getOffset - Returns the timezone offset
Manual
Code Examples

Example #1 DateTime::getOffset example

Result: -18000 -14400
PHP Version:


Function DateTime::getOffset:

Date and Time Functions

Most used PHP functions