DateTimeZone::getOffsettimezone_offset_getReturns the timezone offset from GMT DescriptionObject oriented style
public int DateTimeZone::getOffset
( DateTime
$datetime
)Procedural style
int timezone_offset_get
( DateTimeZone
$object
, DateTime $datetime
)
This function returns the offset to GMT for the date/time specified in the
Parameters
Return Values
Returns time zone offset in seconds on success or Examples
Example #1 DateTimeZone::getOffset examples
<?php |