Quincy Center for Technical Education
Computer Technology Department

Time

Displays the system time or sets your computer's internal clock.

time [hours:[minutes[:seconds[.hundredths]]][A|P]]

Parameters

none

Used without parameters, time displays the computer's clock time and prompts for the new time. Press ENTER to leave the time unchanged or type the new time using the syntax above.

hours

Specifies the hour. Valid values are in the range 0 through 23.

minutes

Specifies minutes. Valid values are in the range 0 through 59.

seconds

Specifies seconds. Valid values are in the range 0 through 59.

hundredths

Specifies hundredths of a second. Valid values are in the range 0 through 99.

A|P

Specifies A.M or P.M. for the 12-hour time format. If you type a valid 12-hour time but do not type A or P, time uses A for A.M.