TIME – Windows CMD Command

Display or set the system time.

TIME with no parameters will display the current time and prompt for a new value.

Pressing ENTER will keep the same time.

/T : Just display the time, formatted according to the current Regional settings.

Time Formatting

In Control Panel, Regional settings a Time Appearance can be set. This can be used to change the separator, and the number of characters used to display hours and minutes.

To display the time including Seconds and Hundredths of a second:


The time Separator, Country Code and Time format can be read from the registry using REG as follows:

Country Codes/Formats

The default time formats for different country codes are below.
Thses values are user changeable so it is not safe to assue the default will be correct for any particular user.


If the time was successfully changed (or not given) %ERRORLEVEL% = 0
If it fails, e.g. the user lacks the privilege %ERRORLEVEL% = 1

TIME is an internal command. If Command Extensions are disabled TIME will not support the /T switch

You may also like...

1 Response

  1. froleprotrem says:

    It is really a nice and helpful piece of information. I am glad that you shared this useful info with us. Please stay us up to date like this. Thank you for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *