Formatting Time Fields: SET TIME MASK

To format time fields to your needs, use the SET TIME MASK control command. Executing this command causes all subsequent time fields to be printed using the specified format.

Syntax:

/: SET TIME MASK = 'time_mask'

In the time mask, you can use the following codes:

  • HH hours (two digits)

  • MM minutes (two digits)

  • SS seconds (two digits)

All other characters found in a time mask are interpreted as simple text and are copied straight into the output.