Händelser
29 apr. 14 - 30 apr. 19
Delta i det ultimata virtuella Windows Server-evenemanget 29-30 april för djupgående tekniska sessioner och live-Q&A med Microsoft-tekniker.
Registrera dig nuDen här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
Displays or sets the system time. If used without parameters, time displays the current system time and prompts you to enter a new time.
Anteckning
You must be an administrator to change the current time.
time [/t | [<HH>[:<MM>[:<SS>]] [am|pm]]]
Parameter | Description |
---|---|
<HH>[:<MM>[:<SS>[.<NN>]]] [am | pm] |
Sets the system time to the new time specified, where HH is in hours (required), MM is in minutes, and SS is in seconds. NN can be used to specify hundredths of a second. You must separate values for HH, MM, and SS with colons (:). SS and NN must be separated with a period (.). If am or pm isn't specified, time uses the 24-hour format by default. |
/t | Displays the current time without prompting you for a new time. |
/? | Displays help at the command prompt. |
Valid HH values are 0 through 24.
Valid MM and SS values are 0 through 59.
If command extensions are enabled, to display the current system time, type:
time /t
To change the current system time to 5:30 PM, type either of the following:
time 17:30:00
time 5:30 pm
To display the current system time, followed by a prompt to enter a new time, type:
The current time is: 17:33:31.35
Enter the new time:
To keep the current time and return to the command prompt, press ENTER. To change the current time, type the new time and then press ENTER.
Händelser
29 apr. 14 - 30 apr. 19
Delta i det ultimata virtuella Windows Server-evenemanget 29-30 april för djupgående tekniska sessioner och live-Q&A med Microsoft-tekniker.
Registrera dig nu