Show TOC

Formatting Time Fields: SET TIME MASKLocate this document in the navigation structure

Use

You can use the SAPscript SET TIME MASK command to format time fields in a way that differs from the standard setting. Executing this command causes all subsequent time fields to be printed with the specified formatting.

        
/: SET TIME MASK = 'Zeitmaske'
         

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

  • HH hours (two digits)

  • MM minutes (two digits)

  • SS seconds (two digits)

Any other characters occurring in the mask are interpreted as simple text and are copied directly to the output.

Example

Assuming the current time is 10:08:12. /: SET TIME MASK = 'HH:MM' &TIME& -> 10:08

/: SET TIME MASK = 'HH hours MM minutes'

&TIME& -> 10 hours 08 minutes

The time mask may be reset to the default setting by using an empty string:

/: SET TIME MASK = ' '