Time: Difference between revisions
(Imported TIME command page from old wiki) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The '''Time''' command sets the system clock and determines the time that the TIME$ function returns. | The '''Time''' [[command]] sets the system clock and determines the time that the [[TIME$]] function returns. | ||
==Comments and Examples== | ==Comments and Examples== | ||
Line 22: | Line 22: | ||
==Syntax== | ==Syntax== | ||
TIME [hh][{:|-}][mm][{:|-}][ss] | |||
[[Image:Time.png]] | [[Image:Time.png]] | ||
Latest revision as of 23:16, 27 October 2015
The Time command sets the system clock and determines the time that the TIME$ function returns.
Comments and Examples
The TIME command uses the 24-hour clock system. 12:01 a.m. becomes 00:01 in this system; 11:59 p.m. is 23:59.
The following example sets the hour to 16 (equivalent to 4:00 p.m. on a twelve-hour clock), the minutes to 35, and the seconds to 42:
TIME 16:35:42
The next command resets the time to 00:00:00:
TIME :
The following command resets the time to 00:00:37:
TIME ::37
The time is reset to 3:00:14 with the following command:
TIME 3::14
Syntax
TIME [hh][{:|-}][mm][{:|-}][ss]
Defaults
- Display the current time in hh:mm:ss format.
- Set to zero.
Parameters
Time parameters may be separated either with a dash (-) or a colon (:). hh parameter is a one or two-digit number from 0 to 24 which represents the hour of the day. mm parameter is a one or two-digit number from 0 to 60 which represents the number of minutes past the hour. ss parameter is a one or two-digit number from 0 to 60 which represents the number of seconds past the minute.
Technical Considerations
Changes to the time apply only to the issuing workstation - current session only.