Page tree
Skip to end of metadata
Go to start of metadata

Converts a time format, such as "*hms" or "*usa", to a pattern, such as "HH:mm:ss" or "hh:mmA".

Parameters

  1. Time format
  2. Separator (for example ":" or ".")

Return value

String pattern

Example

console.log(pjs.getTimePattern("*hms", ":"));  // outputs HH:mm:ss