TIME

Print Topic  Return to Overview  Previous Topic  Next Topic 
Purpose:Display or set the current system time.

 

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

 

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

 

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

 

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 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).

 

/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.

 

Topic "time.htm" last edited 4/21/2008. ©2008  JP Software, Inc.
Keywords: TIME,DATE