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.


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

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