<< Click to Display Table of Contents >> Navigation: Available Functions > Time() |
Syntax
Time()
Purpose
To determine the current time according to the system's clock.
Parameters
None.
Returns
Time() returns the system time as a character value in the form hh:mm:ss. hh is hours in 24-hour format, mm is minutes, and ss is seconds.
Usage
Time() can be used in report headings to print the time in hours, minutes, and seconds that a particular report is run.
Example
The following examples illustrate Time():
CALL |
RESULT |
---|---|
Time() |
10:37:17 |
Substr( Time(), 1, 2 ) |
10 |
Substr( Time(), 4, 2 ) |
37 |
Substr( Time(), 7, 2 ) |
17 |