Microsoft DOS time command

Updated: 05/21/2018 by Computer Hope

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.

Time 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 time. 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 time. Press Enter to keep the same time.

Time examples

time

Entering "time" alone will display the current time and give you the option to enter a new time.

Note: Pressing Enter without entering a new time will keep the current time.

time 12:00

Set the time to 12:00

Additional information

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