If all these attempts fail, the return value is null.
strLib.formatTime(
aTime TIME? in
[, timeFormat STRING? in] )
returns (result STRING?)
The following example assumes that it is 12:32 in the afternoon on the West Coast of the U.S. in the summer:
myFormat STRING = "hh 'o''clock' a, zzzz";
result STRING;
result = strLib.formatTime(dateTimeLib.currentTime(),myFormat);
// result is "12 o'clock PM, Pacific Daylight Time"