| Prev | Next | Clock Verbs > clock.set |
clock.set
| Syntax |
clock.set (date)
|
| Params |
date is a valid date or a string that can be coerced to a date.
|
| Action |
Sets the system clock to the date and time in date.
|
| Returns |
True if the process is successful; false otherwise.
|
| Examples |
clock.set ("Apr 20, 1991 8:34 PM") » true
The return is true, and the clock is set to the indicated date and time.
The argument represents the number of seconds that elapsed between Midnight, Jan. 1, 1904, and 9:14 p.m. on September 14, 1991.
Sets clock forward one hour. |
| Notes |
The date value, if supplied as a string, can be formatted in any of several ways. See Chapter 2 of the UserTalk Reference Guide for details.
|
| See Also |
date
|
| Prev | Next | Clock Verbs > clock.set |