Breadcrumbs

difference() Operation


Syntax


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

Substitutables

dateTime

Can be any variable or object attribute having the type DateTime

duration

The resulting Base Components::Basic Behavior::DateTime::DurationStructure object.

Examples


create duration; 
set duration = dateTime1.difference(dateTime2);