currentTime()
The dateTimeLib.currentTime() system function reads the system clock and returns a TIME value that represents the current time.
Syntax
dateTimeLib.currentTime( )
returns (result TIME)
- result
- A TIME value that represents the current system time. You can assign this result to any variable that is assignment compatible with TIME. See Assignment compatibility in EGL.
Example
In the following example, assume a strLib.defaultTimeFormat of "h:mm a", a null strLib.defaultTimestampFormat, and a time of 13:01:40:
myTime1 STRING = currentTime();
writeStdOut(myTime1);
myTime2 TIMESTAMP("HHmmss") = currentTime();
writeStdOut(myTime2);
writeStdOut(currentTime());The console displays the
following results:
1:01 PM
13:01:40
1:01 PM