tips:revmedia:subs7

DOSTIME

Published ByDateVersionKnowledge LevelKeywords
Revelation Technologies14 NOV 19892.XEXPERTDOSTIME

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.

seconds

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
  • tips/revmedia/subs7.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1