Scoped GlideDateTime - getLocalTime()

Returns a GlideTime object that represents the time portion of the GlideDateTime object in the user's time zone.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
GlideTime The time in the user's time zone.
var gdt = new GlideDateTime("2014-08-31 08:00:00");
gt = gdt.getLocalTime();"local time is " + gt.getByFormat('hh:mm:ss'));