DOSTIME
Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Revelation Technologies | 14 NOV 1989 | 2.X | EXPERT | DOSTIME |
DOSTIME
DOSTIME returns the current time in seconds, accurate to 1/100th of a second.
DOSTIME(seconds)
Using DOSTIME
Use DOSTIME to return the current time in seconds, in which form Advanced Revelation keeps track of daily time. You can use the resulting value of seconds to calculate time passed, or you can use an Advanced Revelation function like OCONV to convert that internal value to a more human readable form.
seconds
Use seconds to return the current time in seconds past midnight.
Values returned
The current time, in seconds, is returned in seconds.
Correct Use of DOSTIME
/* The following code uses DOSTIME to return the current time in the variable SECONDS. Then, it uses the system function OCONV to convert that internal seconds format into a standard 24-hour clock value. /* DECLARE SUBROUTINE DOSTIME, MSG DOSTIME(time) MSG("The current time is ":OCONV(time, "MTS") END;* of program