Scoped 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 time zone offset.
var gdt = new GlideDateTime();
gdt.getLocalTime(); // PST local time
gs.info(gdt.getTZOffset());

Output: -25200000