You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels