Why is my Time Stamp One Hour Off When I Read Time Data From a File? Primary Software: LabVIEW Development Systems>>Full Development SystemPrimary Software Version: 8.5.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I'm reading minutes, hours, days, months, and years from a text file to generate a time stamp using the Date/Time to Seconds VI, the obtained time stamp is sometimes off by one hour. How can I fix this problem? Solution: The Date/Time to Seconds VI increments one hour based on the daylight savings. Typically, clocks are adjusted forward one hour near the start of spring and are adjusted backward in automn. For example, the time in Washington DC for the year 2008 is adjusted forward on Sunday, March 9th, and then backward on November 2nd. Therefore, if the time data being read generates a time stamp between March 9th and November 2nd, the time stamp obtained by the Date/Time to Seconds VI will be one hour more. The attached VI suggests a possible workaround for this incorrect reading by using a case structure after checking the value of the hour in the generated time stamp. Related Links: Attachments:
Report Date: 07/28/2008 Last Updated: 08/02/2008 Document ID: 4NREG75X |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
