purpose | format the input string according to one of supported formats |
---|---|
input | a selection of titles |
suffix | B = one of supported formats |
parameter | C = optional format string for the formats |
output | input strings formatted according to the specified suffix B |
Learn more about how to use Filters
The suffix B
is one of the following supported string formats:
Format | Description |
---|---|
date | The input string is interpreted as a UTC date and displayed according to the DateFormat specified in the optional operator operand. (Defaults to "YYYY MM DD 0hh:0mm") |
json | New in: 5.2.4 The input string is interpreted as JSON and displayed with standard formatting. The optional operator operand specifies the number of spaces to use for indenting, or a string to use for indenting. Nothing is returned if the input string is not valid JSON |
relativedate | The input string is interpreted as a UTC date and displayed as the interval from the present instant. Any operator parameters are ignored |
timestamp | New in: 5.3.0 The input string is interpreted as number of milliseconds since the ECMAScript epoch, 1 January 1970, and displayed according to the DateFormat specified in the optional operator operand. (Defaults to "[UTC]YYYY0MM0DD0hh0mm0ss0XXX") |
titlelist | New in: 5.2.0 The input string wrapped in double square brackets if it contains a space. Appropriate for use in a title list. |
Invalid input strings are dropped by the format
operator.