format

The format inspectors make it easier for content authors to create localizable content. Similar in concept to the C printf function, they allow you to embed arguments into a formatting string, which is followed by the argument values themselves.

The arguments are numbered and enclosed in curly brackets {0} and the values to be substituted are preceded by a plus sign +.

  • Q: format "At {1}, user {0} is logged on." + name of current user + now
  • A: At 9/27/2010 3:03:26 PM, user Scott is logged on.
Version Platforms
8.0.584.0 Session, Windows
9.0.777.0 AIX, Debian, HP-UX, Red Hat, SUSE, Solaris, Ubuntu
9.1.1065.0 Mac
9.5.13.130 Raspbian

Creation

format <string> : format

Casts

<format> as string : string

Operators

<format> + <date> : format
<format> + <format> : format
<format> + <string> : format
<format> + <time> : format