Published By | Date | Version | Knowledge Level | Keywords |
---|---|---|---|---|
Revelation Technologies | 14 NOV 1989 | 2.X | EXPERT | DOSTIME |
DOSTIME returns the current time in seconds, accurate to 1/100th of a second.
DOSTIME(seconds)
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.
Use seconds to return the current time in seconds past midnight.
The current time, in seconds, is returned in seconds.
/* 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