Random Time

The $RTime function generates random time and has the following parameters:

  1. (optional) Format. See date and time formats for details. The default is HH:MM:SS
  2. (optional) Low border. Default is 00:00:00
  3. (optional) High border. Default is 23:59:59

Notes

  • function call, local or global variable are acceptable as the first and second parameter.
  • The function fixes wrong parameters automatically: hour to [0:23] range, minutes, and seconds to [0:59] range.

Examples

$RTime() - means $RTime(HH:MM:SS,00:00:00,23:59:59)
$RTime(HHMM)
$RTime(HHMMSS,000000,100000)