DurationCalculator - calcRelativeDuration(String relativeDurationID)

Calculates the duration using the specified relative duration script.

Upon completion, the this.endDateTime and this.seconds properties are set to indicate the results of the calculation.

Table 1. Parameters
Name Type Description
relativeDurationID String sys_id of relative duration schedule (table cmn_relative_duration).
Table 2. Returns
Type Description
Boolean The result of the duration script.

var dc = new DurationCalculator();