UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

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.

clock.set (2767729543);
return (clock.now ())

   » 9/14/91 ; 9:45 PM

The argument represents the number of seconds that elapsed between Midnight, Jan. 1, 1904, and 9:14 p.m. on September 14, 1991.

clock.set (clock.now ()+3600)

   » true

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

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X