This server class provides methods for performing operations with SimpleTime class objects, for example, for creating SimpleTime object instances or working with class fields.
Returns the hours part of the time using the UTC time zone. The number of hours is based on 12-hour clock. Noon and midnight are shown as 0, not as 12.
Return:
Type
Description
String
The hours part of the time.
Example:
getHourUTC
let st = new SimpleTime();
st.setValue('12:00:00');
ss.info(st.getHourUTC()); // Info: 09