7.5. Second generation new style format strings #

7.5.1. 2nd gen new style format string for strings
7.5.2. 2nd gen new style format string for numeric data
7.5.3. 2nd gen new style format string for monetary data
7.5.4. 2nd gen new style format string for datetime values
7.5.5. 2nd gen new style format string examples

This format string style builds upon the original new style format strings, with the addition of brackets that embed the underlying format strings.

7.5.1. 2nd gen new style format string for strings #

The format string format is the legacy format string embedded in !&{...}.

7.5.2. 2nd gen new style format string for numeric data #

The format string format is the legacy format string embedded in !#{...}

7.5.3. 2nd gen new style format string for monetary data #

The format string format is the same as the first generation. Instead of just having a prefix, the strfmon() format string is embedded in !${...}

Formatting monetary values uses strfmon(). See strfmon(3)

To print the correct currency name, the locale must be set for the report. Only one locale can be set, so a single currency name will be used for every value using monetary formatting.

7.5.4. 2nd gen new style format string for datetime values #

The format string format is embedded in !@{...}. Formatting a datetime value uses strftime().

7.5.5. 2nd gen new style format string examples #

Examples for using these in the Text element format attribute can be found in the Format attribute examples.