PHP » GoLang |
login |
register |
about
|
GoLang DateTime::getOffset
request it (322)
GoLang replacement for PHP's DateTime::getOffset
[edit | history]
DateTime::getOffsetDateTimeImmutable::getOffsetDateTimeInterface::getOffsetdate_offset_get(PHP 5 >= 5.2.1 < 5.5.0) DateTime::getOffset -- DateTimeImmutable::getOffset -- DateTimeInterface::getOffset -- date_offset_get — Returns the timezone offset DescriptionObject oriented style
public int DateTime::getOffset
( void
)
public int DateTimeImmutable::getOffset
( void
)
public int DateTimeInterface::getOffset
( void
)
Procedural style Returns the timezone offset. Parameters
Return Values
Returns the timezone offset in seconds from UTC on success
or ExamplesExample #1 DateTime::getOffset() example Object oriented style
<?php Procedural style
<?php The above examples will output: -18000 -14400 Note: -18000 = -5 hours, -14400 = -4 hours. |
more
Recently updated
more
Most requested
more
Last requests
|