Time Intrinsic Functions - Difference Method

Return the difference between 2 times in seconds

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) Integer Resulting number
Object *Input (Optional) Time Time 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

LANSA Version 15, April 2020