TIME+Displaying the Current Time

Displays the current time and allows you to reset the time.

VERSION

PC-DOS 2.0+ (revised from 1.0; revised again in 3.3)

MS-DOS equivalent: TIME (2.0+; revised from 1.0)

TYPE

Internal

SYNTAX

TIME [hh:mm[:ss[.xx]]]

OPTIONS

hh Hours

mm Minutes

ss Seconds

.xx Hundredths of seconds

EXAMPLES

TIME 21:30

sets the time to 21:30:00:00 (9:30 p.m.).

TIME

returns the current time as indicated by the system clock and

prompts you for a new time. You can accept the current time by

pressing Return.

MESSAGE

Invalid time

Reenter the time in the correct format, with a colon (:) between

hours and minutes as well as between minutes and seconds. Use a

period (.) between seconds and hundredths of a second.

UNDO

If you set the time incorrectly, use the TIME command a

second time and enter the current time.

NOTE

In version 3.3 of PC-DOS, the TIME command also changes the

permanent clock, if the system has one.

------------------------------------------------------------------

[For related topics, press R]

SEE ALSO

DATE Command