08-18-2009 07:28 AM
08-18-2009 07:32 AM
08-18-2009 07:33 AM
Since TimeA>TimeB in that two cases marked in red, you are getting negative values. Can you please give bit more details of your requirement?
Mathan
08-18-2009 07:49 AM
You can also use absolute value if you dont want negative values. Y do you want to compare it first?
08-18-2009 08:50 AM
08-18-2009 08:55 AM
08-18-2009 09:18 AM
08-18-2009 09:22 AM
08-18-2009 09:23 AM
08-18-2009 09:35 AM
I kind of agree with Boone, but the subtract is already improved since timestamps were introduced. The difference between the two time stamps is positive, but it shows something like 1 month, -11 days, 6h, 7min, 33s.
The -11 days is a bit special...
I think the time cluster is just handled like a normal cluster in your LV version (what LV version do you use?), doing element-weise subtract. In newer LV versions timestamps are automatically converted into DBL (second counter) when subtracting.
You can just convert both timestamps to DBL before the subtraction or convert the result to DBL and you should get the difference in seconds.