Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check day light saving time

Status
Not open for further replies.

mag007

IS-IT--Management
Nov 8, 2006
99
US
Is there a way to figure our if a certain machine, UNIX, satisfies the new day light saving time regulation?

 
are you asking how to do that with perl?

- Kevin, perl coder unexceptional!
 
hehe yes.

I am thinking something like this.

Convert March 7, 2007 into UTC, and then run a localtime() against its result. Since localtime($result) goes into the OS.

Do you think thats going to work?

TIA
 
localtime returns as its last argument a variable "isDST" which is true when daylight savings time is being observed.

perldoc localtime

-------------
Cuvou.com | The NEW Kirsle.net
 
I would guess that unless you have patched your machine then it is not going to work for the new DST.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top