Scoped GlideTime - getDisplayValue()

Gets the time in the current user's display format and time zone.

When designing business rules or script includes remember that this method may return values in different formats for different users.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The time in the user's format and time zone.
var gt = new GlideTime();
gt.setDisplayValue("12:00:00"); // User Time Zone
gs.info(gt.getDisplayValue()); // User Time Zone

Output: