LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find seconds since 1/1/70 of host computer?

How do I find the host computer's time, then find the seconds since 1/1/1970? Is there a function for this? thanks.

0 Kudos
Message 1 of 5
(2,003 Views)

@PhillipBrooks wrote:

175126_Unix%20Time

 

https://forums.ni.com/t5/Example-Code/UNIX-Time/tac-p/3519048/highlight/true?profile.language=en#M72...

 


Or you could convert to a double so you get the fractional seconds as well.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(1,959 Views)

Hi,

 

why not use this simple(r) approach?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(1,895 Views)

@GerdW wrote:

Hi,

 

why not use this simple(r) approach?


I think the title is misleading.  I think they were trying to convert to UNIX epoch time from LabVIEW epoch time.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 5
(1,884 Views)