Thursday, September 13

Displaying and Changing System Time

Time
TIME command displays the current system time and lets you change the time. Similar to your digital watch, a computer has its own internal clock, which provides you the system time.
Syntax
Time [hh : mm : ss.cc] [a/p]
where,
hh        :  hour (value from 0 through 23)
mm      :  minutes (value from 0 through 59)
ss        :  seconds (value from 0 through 59 )
cc       :   hundredths of a second (values from 0 through 99)
a/p      :   specifies A.M./P.M.
The time can be expressed in A.M format (12A is midnight,12P is noon).
Alternatively, you can express time on a 24 - hour format (0 considered as midnight, 12 is 12.00 noon, 13 is 1.00 PM afternoon).
The current system time and date is recorded when you save or change files.
Example 1
C:\> TIME  (pres enter key)
It displays the current system time and prompts you to enter a new time.
 - Type a new time and press enter key.
 - Or if you do not want to change the current time press enter key.
 -  If you include the desired time on the command line, the system time is changed without prompting you.

Example 2
C:\>TIME 11: ( press enter key) 
It changes the system time to 11A.M. (without prompting you).

Example 3
C:\>TIME13:10 ( press enter key)
It changes the time to 1:10 PM.

Example 4
C:\>TIME 1.10P (press enter key)
It also changes the time to 1:10PM (Similar to Example 3)

No comments:

Post a Comment