Jump to content

Converting number of seconds since January 1 1970


Recommended Posts


I have a simple question (complicated for me now)

I have a linux based H/W that gives me its present time in seconds which is of the format "number of seconds since January 1 1970"

Now how would i convert the same to the one that Labview function "Format Date/Time String" or "Get Date/Time In Seconds" gives out?

Link to comment

Use the "Date/Time to Seconds" to convert 1/1/1970 to a LV time stamp (seconds from 1/1/1904)

Then add the seconds returned from your hardware to this value to give you the LV time stamp for the harware.

The native LV time stamp for the harware can now be used as an input to the "Format Date/Time String" function etc.


  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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