Microsoft DOS time command

Quick links

About time
Availability
Syntax
Examples

About time

Allows the user to view and edit the computer's time.

Availability

The time command is an internal command that is available in the below Microsoft operating systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

Displays or sets the system time.

TIME [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.

Examples

time 12:00

Set the time to 12:00