Exporteren (0) Afdrukken
Alles uitvouwen
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Expand Minimize

Time

Bijgewerkt: september 2007

Van toepassing op: Windows Server 2008

Displays or sets the system time. If used without parameters, time displays the current system time and prompts you to enter a new time.

For examples of how to use this command, see Examples.

Syntax

time [/t | [<HH>[:<MM>[:<SS>]] [am|pm]]]

Parameters

 

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. If am or pm is not 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.

Remarks

  • To change the current time, you must have administrative credentials.

  • You must separate values for HH, MM, and SS with colons (:). SS and NN must be separated with a period (.).

  • Valid HH values are 0 through 24.

  • Valid MM and SS values are 0 through 59.

Examples

If command extensions are enabled, to display the current system time, type:

time /t

To change the current system time to 5:30 P.M., 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.

Additional references

Vindt u dit nuttig?
(1500 tekens resterend)
Bedankt voor uw feedback

Community-inhoud

Toevoegen
Weergeven:
© 2014 Microsoft