GlideDateTime - getTZOffset()

Gets the time zone offset in milliseconds.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Number The number of milliseconds of the time zone offset

Scoped equivalent

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

var gdt = new GlideDateTime();
gdt.getLocalTime(); // PST local time
gs.print(gdt.getTZOffset());

Output: -28800000