Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://233467]
help
Chatterbox?
[james28909]: i figured it out
[james28909]: upon trying various solutions, i was forgetting to package up the script into an executable
[marto]: that'll do it
[james28909]: im glad im not in charge of anything important, like filling up peanut butter jars
marto grins

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-07-28 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.