pjs.getTimePattern()
Converts a time format, such as "*hms" or "*usa", to a pattern, such as "HH:mm:ss" or "hh:mmA".
Parameters
Time format
Separator (for example ":" or ".")
Return value
String pattern
Example
console.log(pjs.getTimePattern("*hms", ":")); // outputs HH:mm:ss