01-29-2014 02:21 PM
How can I get the file attributes using labview 2013 professional. I need the time and date for the last modify or last save. I found an example but the hour is not correct.
01-29-2014 02:27 PM
Sounds like you're getting the attributes fine and just need to make a timezone adjustment.
Is that the case?
01-29-2014 02:32 PM
That sounds like a Daylight Savings Time or Time Zone issue.
Are you trying to look at files that were saved on a different machine? I have seen this when the DST or the Time Zone on the two machines were setup different.
01-29-2014 02:50 PM
I think that is what the problem is, the time is in UTC and my files were saved in local time which is Eastern standard time or daylight saving time. so, I tried to use a format date/time string module to fix that but I'm getting today's date and time.
01-29-2014 03:57 PM
I have attached the sample vi, how do I convert from UTC to EST? I am very new to Labview but am learning by jumping in. thanks for your help.
01-30-2014 09:27 AM
Look at the Date/Time to Seconds function in the Timing palette. It accepts a fancy cluster that you will need to build. But it also has an input to specify if the cluster is UTC time. Set that to TRUE and you will have a timestamp based on your local time.
01-30-2014 02:27 PM
thanks, i did as you suggested, had to unbundle reverse the order and convert the u16 to I32 format and rebundle before going into the date/time to seconds function. now i get what i am looking for.