DurationCalculator - setStartDateTime(GlideDateTime description, Number amount)

Sets the start datetime for the duration calculations.

Table 1. Parameters
Name Type Description
description GlideDateTime (Optional) The start time in GMT for subsequent calculations. If not present then the current datetime is used.
amount Number amount
Table 2. Returns
TypeDescription
void

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