DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

command to tell if a computer is in daylight savings or not

I have a data plugin that reads my binary data files, written in a LV app, and imports then into the data portal.  I have to convert the time from seconds since 1904 to seconds since 1900 so I get the correct time.  The problem is that the constant I am using only works while we are in daylight savings time.  Is there a way I can call a windows function, in DIAdem, that will tell me if the computer is in daylight savings or not?  If so I can use one of two constants to convert my time.
 
If this helps I have,
 
Diadem 9.1
Windows XP
and iI am in Eastern Standard Time
 
Thank you,
 
AJL
0 Kudos
Message 1 of 2
(3,199 Views)
Hi AJL,
 
To my knowledge, there is nothing built into DIAdem to determine whether you are in or out of Daylight Savings Time, however I may have found something for you.  I did a google search on VBS for determining if a date is in Daylight Savings Time, and I did receive a piece of code that may help you.  I did not test this code, nor do I know anything about the author, but after taking a quick glance at it, it makes sense that it would give you the correct value.  You can find this page here: VBScript to determine if date is in DST from PaulSadowski.com  Let me know if this doesn't work for you for some reason.  Thanks and have a good one.
0 Kudos
Message 2 of 2
(3,181 Views)