TIME(DOS) UNIX System V TIME(DOS)
Name
time - displays and sets the time
Syntax
time [hours:minutes]
Description
Time is entered in a 24-hour clock format. If you just
enter time, the following message is displayed:
Current time is hh:mm:ss.cc
Enter new time:_
If your system has a CMOS clock you can change it using
time.
If you don't want to change the time shown, you simply press
<Return>. If you want to change the time after you have
started MS-DOS (for example, to 8:20 a.m.), enter time
followed by 8:20 in response to the MS-DOS prompt. Note
that letters are not allowed; instead, you must type the
time using numbers only.
The options are:
hours = 0-24
minutes = 0-59
Separate the hour and minute entries by a colon. You do not
have to type the ss (seconds) or cc (hundredths of a
second).
Notes
If you do not type a valid time, MS-DOS displays the
following message and then waits for you to type a valid
time:
Invalid time
Enter new time:_
As with date, you can change time format by changing the
country command in the config.sys file.
time is an internal command.
TIME(DOS) (printed 8/16/89) TIME(DOS)