GlideDateTime - getTime()

Gets the Unix duration stamp.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideTime The Unix duration stamp in system format based on GMT time.

Scoped equivalent

To use the getTime() method in a scoped application, use the corresponding scoped method: Scoped GlideDateTime - getTime().

var gdt = new GlideDateTime("2011-08-31 08:00:00");
gs.print(gdt.getTime());

Output: 1970-01-01 08:00:00