qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TIME$ Function, TIME$ Statement
  Summary             Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Returns the computer's current system time (TIME$ function - no parameters),
 or sets the current system time (TIME$ statement).
 
    TIME$[ = stringexpression$]
 
    ■ stringexpression$    Time expression in a valid format and range
                           (leading zeros may be omitted):
 
                           Format
                           ═════════════════════════════════════════════════
                           hh
                           hh:mm
                           hh:mm:ss (returned by the TIME$ function)
 
                           Ranges
                           (Inclusive)   Valid for
                           ═══════════   ═══════════════════════════════════
                           00 - 23       hh (hour); a 24-hour clock is used,
                                         so 8:00 P.M. would be entered as
                                         20:00:00
                           00 - 59       mm (minute)
                           00 - 59       (Default - 0) ss (second)
 
 See Also
    Date and Time Command Summary    FORMAT$ Function