Product Home
DTM Data Generation SDK Online Documentation
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

Random Time

Creates string presentation for the random time in specified range with required format.
C/C++
char* TimeRandom(char *format,char *from,char *to)

C#
string TimeRandom(string format,string from,string to)

The format string can contain:
HH - hours from 0 to 23 or from 0 to 12.
MM - minutes from 0 to 59.
SS - seconds from 0 to 59.
PM - PM or AM sign.

Examples: HH:MM:SS, HH:MM PM
Important: 'from' and 'to' should be compatible with format specified by 'format'.