Skip to main content

Random Time

Goal

Write mask rule logic to

  • generate random times from an interval defined by <from> and <to> properties
  • The random-time function generates values having standard format "HH:mm:ss" (24-hour time format)
    • %tT

Ano Structure and Examples

        ...
mask <column> <rule-name>
format %tT
random-time <from> <to> // [<from>, <to>]
...
  • <from> and <to> values are included in the generated values.
    • Both are written using the format "HH:mm:ss" (24-hour time format)
  • random-time creates values of the format HH:mm:ss, the %tT will result in strings of this format.
        For different formats, see Formats
  • Note the lack of double quotes " around the values after the random-time keyword. This is the correct syntax.