Specifications

383
Syntax:
Syntax 1 (Retrieving the current system time or wakeup time):
TIME$
Syntax 2 (Setting the current system time or wakeup time):
TIME$="time"
Parameter:
time
A string expression.
Description:
Syntax 1
Retrieving the current system time
TIME$ returns the current system time as an 8-byte string. The string has the for-
mat below.
hh:mm:ss
where hh is the hour from 00 to 23 in 24-hour format, mm is the minute from 00 to
59, and ss is the second from 00 to 59.
Example:
CLS
PRINT TIME$
Retrieving the wakeup time
TIME$ returns the wakeup time as a 5-byte string. The string has the format below.
hh:mm
TIME I/O function
TIME$
Returns the current system time or wakeup time, or sets a specified system time or wakeup
time.