Purpose:Display or set the system time


Format:TIME [/S [server] /T /U] [hh[:mm:ss]]] [AM | PM]


hhThe hour (0 - 23)
mmThe minute (0 - 59)
ssThe second (0 - 59)


/S(erver time)/U (UTC time)
/T (Display only)


See also:   DATE.




If you don't enter any parameters, TIME will display the current system time and prompt you for a new time. Press Enter if you don't wish to change the time; otherwise, enter the new time:


[c:\] time

Thu  Aug 18, 2011  9:30:06

Enter new date (mm-dd-yy):


TIME defaults to 24-hour format, but you can optionally enter the time in 12-hour format by appending a, am, p, or pm to the time you enter. For example, to enter the time as 9:30 am:


time 9:30 am




/S serverSets the date and time from the specified internet time server. If no server is specified, TIME uses the server defined in the Time Server configuration option (the default is clock.psu.edu). Changing the time requires TCC to be running in an elevated session.


/TDisplays the current time but does not prompt you for a new time. You cannot specify a new time on the command line with /T. If you do, the new time will be ignored.


/UDisplay or enter the UTC time.