Skip to main content
Skip table of contents

difference() Operation

Syntax
NONE
set aDuration = dateTime1.difference(dateTime2)
Semantics

difference() calculates the difference between two DateTime objects. The result is an object of type DurationStructure.

Symbolically: duration = dateTime1 - dateTime2

SubstitutablesdateTime Can be any variable or object attribute having the type DateTime
duration The resulting Base Components::Basic Behavior::DateTime::DurationStructure object.
Examples
NONE
create duration; 
set duration = dateTime1.difference(dateTime2);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.