![]() |
|
The dtcurrent() function assigns the current date and time to a datetime variable.
When the variable qualifier is set to zero (or any invalid qualifier), the dtcurrent() function initializes it with the year to fraction(3) qualifier.
When the variable contains a valid qualifier, the dtcurrent() function extends the current date and time to agree with the qualifier.
The following statements set the host variable timewarp to the current date:
The following statements set the variable now to the current time, to the nearest millisecond:
The demo directory contains this sample program in the dtcurrent.ec file.