GlideDateTime - getDSTOffset()

Gets the amount of time that daylight saving time is offset.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number Amount of time, in milliseconds, that daylight saving is offset. Returns 0 if there is no offset or if the time is not during daylight saving time.

Scoped equivalent

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

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

Output:

3600000