12-22-2021 11:59 AM
How do I take a collection of these days/hours/minutes etc. to a time stamp? What would be the easiest way?
12-22-2021 01:30 PM - edited 12-22-2021 01:31 PM
LabVIEW Timestamps represent absolute time - ie representing a specific date and time. The .NET TimeSpan struct represents relative time - ie representing the amount of time that has elapsed from some (not specified) origin. Converting the latter to the former doesn't make sense unless you have an origin point in mind.
https://www.ni.com/en-nz/support/documentation/supplemental/08/labview-timestamp-overview.html
https://docs.microsoft.com/en-us/dotnet/api/system.timespan?view=netframework-4.7.2
Assuming you do have an origin point in mind, then it is helpful to know that you can create a TimeStamp (your origin) and then add a number of seconds to it represented by a double value. If you can convert your TImeSpan elements into a total number of seconds (including the fractional portion), then you can create a LabVIEW TimeStamp absolute time that represents your original Origin + TimeSpan relative difference.
12-22-2021 09:44 PM
something like this shall help