Timezone using longitude



I have found a method to find the timezone using longitude of a place from somewhere. I tried it to do some calculations and found it working, it is not very accurate though (needs some improvements)

The timezone changes every 15 degrees on longitude either way. The formula to find timezone is:

(longitude/15) * 3600;

This will give you timezone (or time differnce from GMT) in seconds. And can be used in calculations.

Hope this will help.

Regards,

A Kamran

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
.



Relevant Pages

  • Re: Timezone using longitude
    ... It includes DST rules. ... are established by law, usually follow 1-hour increments, and have ... I tried it to do some calculations and found it working, ... The timezone changes every 15 degrees on longitude either way. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: daylight savings time change
    ... On Jan 11 Tim did spake thusly: ... but does it's own calculations. ... could tell it to use a particular timezone, so it must be able to tell ... Proverb ...
    (Fedora)
  • Re: Timezone using longitude
    ... What you are calculating is local mean time, not zone time. ... established by law, usually follow 1-hour increments, and have boundaries ... I tried it to do some calculations and found it working, ... The timezone changes every 15 degrees on longitude either way. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: new java date query
    ... Deals that had that start date in the home timezone of the business. ... Where do these pure dates come from? ... You get them by considering the date of a timestamp at Greenwich. ... calculations are simplified by getting rid of the time and timezone ...
    (comp.lang.java.programmer)
  • Re: timezone algorithm
    ... > I want to feed it with longitude and latitude. ... If you are a navigator on _sea_, the timezone is simply longitude ... Some countries have many different timezones. ...
    (comp.lang.java.help)