Jump to content

cengique

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

cengique's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Sorry but your VI outputs the wrong times. You really need to calculate the number of seconds elapsed between the 1904 date and 1970 date. Simply subtracting the year doesn't solve the problem. Anyway, in my case I needed that number of seconds to subtract to adjust the 1904-based mac date to 1970-based unix date. The value above in the first message of the thread gave me a 16-day offsetted date. So I calculated my own number: 2082816000. This is the number of seconds elapsed between 1/1/1904 and 12pm 12/31/1969. I used the attached VI Download File:post-2734-1123703905.vi to ask LabVIEW this number and write the timestamp into a file. Unfortunately, I couldn't find an easier way to get this number, since there are no 64-bit integer data types in LabVIEW. You can run the vi, it will ask for a file name. Looking in the newly created file you will get the above number in HEX and in big-endian format. It's curious google doesn't give this number. I hope this time it's right. -Cengiz
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.