By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

How to convert a given local time to UT considering Daylight Saving Times....

P: n/a
Hi group ,

I need a function to convert a given local time to the correct Universal
Time ( UTC/GMT). The problem is the Daylight Saving Times(DST). Unix/Linux
uses the Olson TZ database wich contains all the informations
about DSTs... Are there any functions wich make this for me ? Such a
function must use some location information like Longtitude to calculate the
right UTC offset. After that it needs to look for the DST in a database.
Anyone for an idea ? Maybe someone can point me to the right direction ...

Thanks for help
Filip

_________________________________
Filip Lyncker, Dipl.-Inform. (FH)

Ingenieurbüro Lyncker & Theis GbR
Rauenthaler Straße 8
65197 Wiesbaden

Fon 0611/89038960
Fax 0611/9406125

ly*****@lyth.de
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Filip Lyncker" writes:
I need a function to convert a given local time to the correct Universal
Time ( UTC/GMT). The problem is the Daylight Saving Times(DST). Unix/Linux
uses the Olson TZ database wich contains all the informations
about DSTs... Are there any functions wich make this for me ? Such a
function must use some location information like Longtitude to calculate
the right UTC offset. After that it needs to look for the DST in a
database.
Anyone for an idea ? Maybe someone can point me to the right direction ...


Local time is a political/governmental decision so you can't compute it from
longitude.
Jul 23 '05 #2

P: n/a
Local time is a political/governmental decision so you can't compute it
from
longitude.


yes , thats the reason why im talking about a database like the olson
database...


Jul 23 '05 #3

P: n/a
Filip Lyncker wrote:
Local time is a political/governmental decision so you can't compute it
from
longitude.


yes , thats the reason why im talking about a database like the olson
database...


OK. So what is wrong with using that 'Olson database'
A quick google search brought up some sites which
looked promising.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.