Time command

Updated: 11/12/2023 by Computer Hope
time command

The time command allows the user to view and edit the computer's time.

Availability

Time is an internal command that is available in the following 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 only 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

Typing "time" alone displays the current time and give you the option to enter a new time.

Note

Pressing Enter without entering a new time keeps the current time.

time 12:00

Set the computer time to 12:00.