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

Compare with Current View Page History

« Previous Version 26 Next »

The objects of this server class store duration as a date and time from January 1, 1970, 00:00:00.

add(duration)

Summarizes two SimpleDuration objects and returns the result.


Parameter(s):

NameType
durationSimpleDuration


Return:

TypeDescription
SimpleDuration


Example:

add
var simple_duration = new SimpleDuration("2 10:00:00");
var simple_duration_1 = new SimpleDuration("01:00:00");
var result = simple_duration.add(simple_duration_1);
ss.info( result.getDisplayValue() );

  • No labels