oem.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
Notes  Example
────────────────────────────────────────────────────────────────────────────
 
                                    TIME
 
Displays the system time or sets your computer's internal clock.
 
MS-DOS uses time information to update the directory whenever you create or
change a file.
 
Syntax
 
    TIME [hours:[minutes[:seconds[.hundredths]]][A|P]]
 
To display the current time or to display a prompt by which you can change
the current time, use the following syntax:
 
    TIME
 
Parameters
 
hours
    Specifies the hour. Valid values are in the range 0 through 23.
 
minutes
    Specifies minutes. Valid values are in the range 0 through 59.
 
seconds
    Specifies seconds. Valid values are in the range 0 through 59.
 
hundredths
    Specifies hundredths of a second. Valid values are in the range 0
    through 99.
 
A|P
    Specifies A.M or P.M. for the 12-hour time format. If you type a valid
    12-hour time but do not type A or P, TIME uses A (for A.M.).
 
Related Commands
 
For information about changing the current date, see the <DATE> command.
 
For information about changing the time format, see the <COUNTRY> command.
 
                                      ♦