Scoped GlideDateTime - add(Number milliseconds)

Adds the specified number of milliseconds to the current GlideDateTime object.

Table 1. Parameters
Name Type Description
milliseconds Number The number of milliseconds to add.
Table 2. Returns
Type Description
void
var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.info(gdt.getNumericValue());
gdt.add(10);
gs.info(gdt.getNumericValue());

Output: 1314777600000 1314777600010