Search This Blog

Infolinks

Saturday, November 3, 2012

Meet The Command Prompt - The Time Command

This is a fairly simple command to use. The time command simply displays the current time. When this command is run without arguments, It first displays the current time, then prompts for a new time to be entered. You can simply press enter to keep the current time.

When you don't want to be prompted for a new time, you can use the /t switch. This switch when used will simply display the current time.


time /t        -    displays the current time
time         -    displays the current time and prompts for a new one
time 11:11:11.11    -    sets the current time to the specified time


The time should be entered in the format hr-mn-sec-milsec (the hour first, the minutes next, the seconds in the third, and lastly the milliseconds).