DOS Prompt

TIME

Last reviewed: 08/03/2012

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.

Notes

For the syntax for the time, which is based on your current location settings, run TIME without any commands. Then simply press Enter or CTRL-C to accept the current time, or enter a new one.

Examples

 

Associated Commands

DATE