TIME$

From CometWiki

Revision as of 05:33, 1 June 2009 by Badge (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

TIME$

System variable: TIME$
Length: 11
Description:

The system variable named TIME$ contains the current system time. 
This variable is an 11-byte string in the format "HH:MM:SS.DD",
where "HH" represents the hour in 24-hour format, 
      "MM" represents the minute from 0 to 60, 
      "SS" represents the second from 0 to 60,  
  and "DD" represents the hundredths of a second from 0 to 99. 

Even though all Comet systems have a clock, TIME$ is not updated until:

  • the clock is opened and read, or
  • the DSTAT function is used on the clock:
  • A$ = DSTAT("CL1")

The name usually configured for the clock is CL1 (although an alternative name can be chosen during system configuration).

Personal tools