Time Intrinsic Functions - Difference Method

Return the difference between 2 times in seconds

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting number
Object*Input (Optional)TimeTime to be compared to

Details

Difference returns the number of seconds between the Object time and the subject.

Example

In this example, if #Now is 12:34:56 and #Then is 10:34:56, the result would be 7200 i.e 2 hours later.
#Result := #Now.Difference(#Then)
If the parameters were reversed, the result would be -7200 i.e. 2 hours before

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2