DurationCalculator - getSeconds( )

Gets the this.seconds property that was set by calcDuration/calcRelativeDuration, indicating the total number of seconds of work to be performed for the duration. This is the total work time, not the total time between start and end times and may be used to determine percentages of the work time.

This is the total work time, not the total time between start and end times and may be used to determine percentages of the work time.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
TypeDescription
NumberThe total work time, in seconds.

var dc = new DurationCalculator();
dc.calcDuration(52);
gs.print(dc.getSeconds());

*** Script: 52