now() is the moment in milliseconds. time.clock and time.date write one as the reader's own place writes it.
A ticking clockAn every among the page's markup sets a state four times a second; everything that reads it follows.
12:02 AMtime.clock(now())and 08 seconds
Wed, Dec 2time.date(now())
now()
1796169728430
Any momentBoth take any number of milliseconds: move the moment and read it again.
hours from nownow
12:02 AMtime.clock(moment)
Wed, Dec 2time.date(moment)
The words and their order are the reader's own: another language or region writes them its way.
Timers
every runs its statements again and again; after runs them once. Among markup they start when that part is built and stop when it is removed.
every: a stopwatchThe every is under an if: it only ticks while the watch runs.
00:00.0
No laps yet.
after: once, laterArming builds a part with an after in it. Cancel removes the part before the time is up, and the after never runs.
wait2.0 seconds
Nothing is waiting.
ran 0 times
A timer lives with its partThe switch puts a component on the page that counts with an every of its own. Take it off and the count stops: nothing to clear by hand.
The part is on the page
0beats counted
The part is not on the page: no timer is running.
Small things
uid()A fresh id each time: for a new row's key, a file's name, anything that must not repeat.
0 made
Press it.
log(x)Writes a value to the browser's console, whatever it is: open the developer tools to see it there.