10 10 8 Difference

LANSA Technical

10.10.8 Difference

Difference returns the number of seconds between the subject and object times.

Input Parameters

Object - Time to be compared against

Example

In this example, if #Starttime contained 12:00:00 and #Endtime contained 13:00:00, the result would be 3600. That is, #Endtime is 3600 seconds (1 Hour) after #Starttime.

#Seconds := #EndTime.Difference(#StartTime)

 

Reversing the parameters, as follows, will give a result of -3600. That is, #starttime is 3600 seconds before #Endtime.

#Seconds := #StartTime.Difference( #EndTime )

 

Ý 10.10 Time Intrinsic Functions