TIME |
|
| Purpose: | Display or set the current system time. |
| Format: | TIME [/S [server] /T] [hh [:mm:ss ]]] [AM | PM] |
| hh | The hour (0 - 23) |
| mm | The minute (0 - 59) |
| ss | The second (0 - 59) |
See also: DATE.
Usage:
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 Jan 31, 2008 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
The operating system adds the system time and date to the directory entry for every file you create, modify, or access. If you keep both the time and date accurate, you will have a record of when you last updated each file.
Options:
| /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). |
| /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. |