Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Daylight Savings Time twist

by cacharbe (Curate)
on Feb 07, 2003 at 14:10 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found