Determine the offset in seconds between two time zones

The Date::offset() method will return the total number of seconds between two different time zones. If you only provide one time zone then this will be compared with your local time zone.

Usage

  echo Date::offset('America/New_York');
  3600
  echo Date::offset('Antarctica/Casey', 'America/New_York');
  46800

For a complete list of time zones that are supported by PHP5 click here

determine_the_offset_in_seconds_between_time_zones.txt · Last modified: 2009/12/10 16:04 by kerkness