McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 544

↗ View in doc context
page
544
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::528

{String} The duration in the HH:MM:SS format or -1 for null or negative values. currentServerTimeMillis() Retrieves the current time, which is adjusted by the calculated time difference to the approximate server time. This is used when calculating durations based on a server timestamp, which can produce unexpected results if the clock on the client and server are off. Example finesse.utilities.Utilities.currentServerTimeMillis() Returns {String} The current server time in milliseconds. encodeNodeName(node) Encodes the node name. Example finesse.utilities.Utilities.encodeNodeName('User1@h') Parameters Required Description Type Name Yes The name of the node. If the string has special characters (?, @, &, ') then, the string is encoded in UTF-8. String node Returns {String} The encoded name of the node. escapeSpaces(text) Escapes the spaces as encoded " " characters so they can be safely rendered by jQuery.text(string) in all browsers. Although Internet Explorer behaves as expected, Firefox collapses spaces if this function is not used. Example finesse.utilities.Utilities.escapeSpaces('User John') Parameters Required Description Type Name Yes The string whose spaces must be escaped. String text Returns {String} The string with spaces escaped. extractHostname(url) Extracts the hostname from a given URL string. Example Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 528 Cisco Finesse JavaScript APIs Utilities