/mcpRequired Description Type Name Yes The client time in milliseconds. Integer clientTime Returns {Integer} The server time in milliseconds. convertTsToDuration(timestamp, now) Converts the timestamp string of the format YYYY-MM-DDTHH:MM:SSZ into a duration of HH:MM:SS format. Example finesse.utilities.Utilities.convertTsToDuration(a) Parameters Required Description Type Name Yes The timestamp of the format YYYY-MM-DDTHH:MM:SSZ. String timestamp Optional The defined time from which to calculate the duration instead of using the current time. Date now Returns {String} The duration in the HH:MM:SS format. convertTsToDurationWithFormat(timestamp, forFormat, now) Converts the timestamp string of the format YYYY-MM-DDTHH:MM:SSZ into a duration of HH:MM:SS format or -1 for null or negative durations, depending on the forFormat parameter. Example finesse.utilities.Utilities.convertTsToDurationWithFormat(a, true, new Date()) Parameters Required Description Type Name Yes The timestamp of the format YYYY-MM-DDTHH:MM:SSZ. String timestamp Yes Determines the timestamp format. • True—If the duration is null or a negative value, -1 is returned. Otherwise, the duration is in HH:MM:SS format. • False—The duration in HH:MM:SS format. Boolean forFormat Optional The defined time from which to calculate the duration instead of using the current time. Date now Returns Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 527 Cisco Finesse JavaScript APIs Utilities