MS-DOS Commands :: time


Displays or sets the computer's time. See also: date

Tip: If you want to set your computer's internal clock, it is recommended that you do that task via the Date and Time Control Panel (Start > Settings > Control Panel > Date and Time).

help time

Displays or sets the system time.

TIME [/T | time]

Type TIME with no parameters to display the current time setting and a prompt
for a new one.  Press ENTER to keep the same time.

If Command Extensions are enabled the TIME command supports
the /T switch which tells the command to just output the
current time, without prompting for a new time.

(Enlarge: help time)