Official Docs: GlideTime

The scoped GlideTime class provides methods for performing operations on GlideTime objects, such as instantiating GlideTime objects or working with GlideTime fields

getByFormat

Gets the time in the given time format

subtract

Gets the duration difference between two GlideTime values

getHourLocalTime

Returns hour part of local time 0-11

setDisplayValue

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

getHourUTC

Returns hour part of UTC time 0-11

getValue

Gets the time value stored in the database by the GlideTime object in the internal format, HH:mm:ss, and the system time zone, UTC by default

getMinutesUTC

Returns minutes part of UTC time

getSeconds

Returns seconds part of time

getDisplayValue

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

setValue

Sets the time of the GlideTime object in the internal time zone, which is UTC by default or the value of the glide.sys.internal.tz property, if set

getDisplayValueInternal

Gets the display value in the current user's time zone and the internal format (HH:mm:ss). Useful for date/time fields, but not for date fields

getHourOfDayLocalTime

Returns hour-of-the-day part of local time 0-23

getHourOfDayUTC

Returns the hour-of-the-day part of UTC time 0-23

getMinutesLocalTime

Returns minutes part of local time