c_w_k Posted November 2, 2009 Report Share Posted November 2, 2009 (edited) Hello, I'm trying to create a timestamp in LabVIEW, I get a timestamp variable from my C++ dll that is epoch (seconds since 00:00:00 January 1, 1970) - I think try to use the "seconds to data/time" function in labVIEW to convert it to a timestamp....the problem is, my timestamp is off by 303 years (just a lil off ). Is it possible to use the C++ variable to get a timestamp in LabVIEW? I think I read somewhere that LabVIEW uses the year 1904 for timestamps??? I'm not real familiar with creating timestamps.... I've attached screen shots of my code and the result... Thanks in advance for any help. -Chad NOTE: The code above is something I tried (the 1000 x tm....thinking the milliseconds might have been off, the code that produced the results that are shown is actually the code below, sorry about that... ) -Chad Edited November 2, 2009 by c_w_k Quote Link to comment
Gary Rubin Posted November 2, 2009 Report Share Posted November 2, 2009 the problem is, my timestamp is off by 303 years (just a lil off ). But all the other values are correct? Quote Link to comment
Ton Plomp Posted November 2, 2009 Report Share Posted November 2, 2009 Well the LabVIEW timestamp has it's epoch set to 1 january 1904 GMT. It consists of two I64's, the first one the number of seconds since it's epoch, the second one is a fraction of that second. What is the size of the C++ timestamp? Ton Quote Link to comment
Ton Plomp Posted November 2, 2009 Report Share Posted November 2, 2009 Have a look at this code-post, the code inside the rectangle will deal with your offset. Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.