Microsoft DOS time command

time commandAbout time
Availability
Time syntax
Time 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
Windows 8
Windows 10

Time Syntax

Windows Vista and later syntax
Windows XP and earlier syntax

Windows Vista and later syntax

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.

Windows XP and earlier syntax

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.

Time examples

time 12:00

Set the time to 12:00

Additional information

  • See our time definition for further information and related links on this term.