Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Daylight Savings Time twist

by cacharbe (Curate)
on Feb 07, 2003 at 14:10 UTC ( #233467=note: print w/ replies, xml ) Need Help??


in reply to Daylight Savings Time twist

I needed to write a similar service for our intranet to list the time at different installations world wide, knowing only their offset from UTC and whether or not they observe DST. DST occurs at the same time everywhere in the US, if it is observed.

I decided to just use one of the NIST time servers and a file with the offset, bool data

You can get the data by making a simple tcp call to the time server, which returns a string that you can split and compute the current time if you know the UTC off set.

Some more DST information, including what US territories, states and holdings acknowledge it.

C-.

---
Flex the Geek


Comment on Re: Daylight Savings Time twist

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://233467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-12-29 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls