HTBasic Help
×
Menu
Index

TIMEDATE

Returns the current time and date from the clock.
 
 TIMEDATE
 
Usage:
PRINT "The operation took ";TIMEDATE-Start;" seconds"
DISP TIME$(TIMEDATE),DATE$(TIMEDATE)
DISP "Seconds since midnight = ";TIMEDATE MOD 86400
 
Example: TIMEDATE.BAS
 
Description:
A real number, representing the present time and date is returned. To convert the number to the familiar date and time formats, use TIME$ and DATE$. The value returned is loosely based on the Julian Period, which began in 4713 B.C. To return the current Julian Day, use the following function. Remember that the Julian Day changes at noon.
 
10  DEF FNJd_now
20    RETURN ((TIMEDATE-4300) DIV 86400)-1
30  FNEND
See Also: