|Purpose:||Display or set the system time|
|Format:||TIME [/S [server] /T /U "format"] [hh[:mm:ss]]] [AM | PM]|
|hh||The hour (0 - 23)|
|mm||The minute (0 - 59)|
|ss||The second (0 - 59)|
|"..."||Date display format|
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:
Wed Mar 17, 2019 9:30:06
Enter new time (hh:mm:ss):
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
The day of week and the month are translated into your local language (English, French, German, Italian, Russian, and Spanish).
|"..."||Custom date / time format to use when displaying the current time. The formatting characters are the same as used by the @DATEFMT function.|
|/S server||Sets 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.|
|/T||Displays 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.|