Scoped GlideTime - setDisplayValue(String asDisplayed)

Sets a time value using the current user's display format and time zone.

Table 1. Parameters
Name Type Description
asDisplayed String The time in the current user's display format and time zone. The parameter must be formatted using the current user's preferred display format, such as HH:mm:ss.
Table 2. Returns
Type Description
void
var gt = new GlideTime();
gt.setDisplayValue('01:00:00');   // User Time Zone
gs.info(gt.getDisplayValueInternal()); // User Time Zone

Output: