Skip to Content

TIME$

A 24 character long string pseudo-variable which reads and sets the system clock. The format of the character string is:

Day date Month year, hh:mm:ss

Where:

Day is the day of the week in full (Monday, Tuesday, etc)

date is the day of the month (1st, 2nd, etc)

Month is the month name (January, February, etc)

year is the year (1986, 1987, etc)

hh is hours (00 to 23)

mm is minutes (00 to 59)

ss is seconds (00 to 59)

clock$=TIME$ TIME$=”Sunday 2nd February 1986, 18:33:30”

The date or both date and time may be set as shown below:

TIME$=”Day date Month year” TIME$=”Day date Month year, hh:mm:ss”

When setting the clock, the day of the week may be omitted.

The Z88 is remarkable in that it will accept almost any date format. The following examples demonstrate this to some extent. Neither of them conforms to the default format, but they work. The first example below sets only the date and the second sets the date and the time.

TIME$=”2 Feb 86” clock$=”Mon 03 Feb 1986,22:31:15” TIME$=clock$

In general, you will find it easier to use □T (Clock popdown) to set the date and time.

If the Z88 cannot make sense of the string, or the day/date is impossible, a ‘Bad syntax’ error will be reported.

Syntax

TIME$=<str> <s-var>=TIME$

Associated Keywords

TIME

Last updated on