Scoped GlideDuration - getValue()

Gets the internal value of the GlideDuration object.

GlideDuration objects store the duration as a date and time from January 1, 1970, 00:00:00.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
String The duration in the object's internal format, which is the date and time from January 1, 1970, 00:00:00.
var dur = new GlideDuration('3 12:00:00');
gs.info(dur.getValue());
Output:
1970-01-04 12:00:00