I am trying to make a vi that calculates the time period in days, hours, minutes and seconds, but I can't find a smart and easy way to do it.. Since the days in a month varies, I have a problem to calculate the number of days in e.g. 4 months.
Does anyone have a clever solution to this problem?
Please have a look at the attached vi.
Solved! Go to Solution.
When you perform a math operation on two timestamps, the resulting output has a unit of seconds. You can use the Format into String function to convert those seconds into absoute time units.
AS you noted, months are relative and not supported in the format string function. A week is a constant of 7 days and can be calculated.