HTBasic Help
×
Menu
Index

Date/Time and Environment

 
Date and time functions read the system time and convert time values in seconds to the familiar human readable forms and vice versa.
 
Operator
Meaning
Example
Result
DATE
String to seconds
DATE("1 JAN 1980")
2.11182336E+11
DATE$
Seconds to string
DATE$(2.11182336E+11)
"1 JAN 1980"
TIME
String to seconds
TIME("01:00:00")
3600
TIME$
Seconds to string
TIME$(2.11182336E+11)        
"00:00:00"
TIMEDATE
Present time/date
TIMEDATE
seconds
 
Environment functions return information about the HTBasic environment. The SYSTEM$ function, particularly, provides a wealth of information and is explained in detail later in this section.        
         
Operator
Meaning
Example
Result
CHRX
Character cell width
CHRX
8
CHRY
Character cell height
CHRY
14
COMMAND$
Command line
COMMAND$
"-O -Z 2"
CRT
Display ISC
CRT
1
ENVIRON$
Environment variable
ENVIRON$("PATH")
"C:\;C:\Windows"
FRE
Available Memory
FRE
300000
KBD
Keyboard ISC
KBD
2
MAXREAL
Largest REAL number
MAXREAL
1.798E+308
MINREAL
Smallest REAL number
MINREAL
2.225E-308
NPAR
Number of parameters
NPAR
0
PRT
Printer device selector
PRT
10
RATIO
Graphic screen ratio
RATIO
1.48
SYSTEM$
System information
SYSTEM$("MSI")
"C:\"