Jump to content

How to compute time between date/time stamps


A1ex

Recommended Posts

The timestamp is essentially the number of seconds since January 1904 in DBL representation, so you can substract one timestamp from the other and then divide the result by 86400, 3600 or 60 to get what you want.

And what would be the way of dealing with timestamp in text format?

Link to comment
And what would be the way of dealing with timestamp in text format?
If you mean that your timestamps are in strings, then you will need to convert them to LV timestamps by breaking the strings into their different parts, converting those parts to numbers, wiring those numbers into a date/time cluster and converting that cluster to a timestamp. The basic VIs can be found in the Time & Dialog palette. A nice example of how this can be done can be found here.
Link to comment
  • 10 months later...

Join the conversation

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

Guest
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.