08-26-2011 04:56 AM
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.
Regards
Paul
Solved! Go to Solution.
08-26-2011 05:57 AM
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.
See attached...
08-26-2011 06:09 AM
That was smart and easy. Thank you for your support!