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
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
Comment