Published on: 24th Nov 2011    |   Last Updated on: 24th Nov 2011

TIME - Dos Command :

It displays or sets the system time.

Command can be run using Microsoft Windows XP Command Prompt (cmd.exe)

To view 'time' command with its all possible parameters you can use following command. Its like help information to regarding that command.

time /?

Syntax :
	TIME [/T | time]
Use 1:

time
The current time is: 21:56:05.21
Enter the new time: 21:57:03

- 'time' command without parameters displays current time setting and it prompts for a new one time. You can change system time by entering new time or you can simply press ENTER to keep the same time with having no change in it.

Output :


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\DINESH > time The current time is: 21:56:05.21 Enter the new time: 21:57:03
D:\DINESH > _
Use 2:

time /t
09:57 PM

- 'time' command with parameter /t, which tells the command to just output the current time only, without prompting for a new time.

Output :


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\DINESH > time/t 09:57 PM
D:\DINESH > _

Link this post on your Blog/Website :

Follow us on :   Technoexam on facebook Technoexam on twitter Technoexam on linkedin Technoexam on youtube