Timezone using longitude

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Abdullah Kamran

    #1

    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

  • Michael A. Covington

    #2
    Re: Timezone using longitude

    What you are calculating is local mean time, not zone time. Time zones are
    established by law, usually follow 1-hour increments, and have boundaries
    that are not straight lines.

    For example, Atlanta (longitude 84 west) is 5.6 hours behind GMT according
    to your formula, but in fact it is officially 5 hours in the winter and 4
    hours in the summer.

    Local mean time is almost always within 1 hour of official (standard) zone
    time.



    <Abdullah Kamranwrote in message news:2007951136 13akamrans@yaho o.com...
    >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

    Comment

    Working...