Formats the time (number of milliseconds) given based on a format string.This function is valid in v2.18.0. This function has been downloaded 1 time.
w) will be replaced by the number of weeks,
d) by the number of days (maximum being 6),
h) by the number of hours (maximum being 23),
mby the number of minutes (maximum being 59),
sby the number of seconds (maximum being 59), and
Sby the number of milliseconds (maximum being 999). Adding an exclamation point to the end of any of those characters (eg.
S!) will result in the corresponding value not being truncated based on the next highest time increment. Using
SSSwill result in leading zeroes for those corresponding values. Instances of
-will be removed only if
msis positive. Instances of
+will be replaced with
msis negative, otherwise
+will remain. Wrapping a substring in single quotes or double quotes will cause that substring to be escaped and any instances of that same quote character being repeated once will be replaced with just one. Wrapping a substring with the hash character (#) will result in a conditional string where any underlying substring wrapped in parentheses will only be returned if the preceding meta-group is not
1. If the the conditional substring is specified and the preceding meta-group is
1then either nothing will be printed or if the parenthesized group contains an unescaped vertical bar anything found thereafter will be printed.
msformatted based on