User Tools

Site Tools


usage:atlatc:api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
usage:atlatc:api [2020-02-23 09:10]
orwell
usage:atlatc:api [2020-12-25 19:01]
orwell example for schedule
Line 106: Line 106:
 The time value here is an absolute value. The time value here is an absolute value.
 msg can be any data type and is accessible in ''event.msg''. msg can be any data type and is accessible in ''event.msg''.
 +<code>
 +  -- Example: schedule a "depart" event on the next full 5 minutes
 +  local now = rwt.now()
 +  local next_5minutes = rwt.next_rpt(now, "05;00", 0)
 +  schedule(next_5minutes, "depart")
 +</code>
  
 === schedule_in(rwtime, msg) === === schedule_in(rwtime, msg) ===
usage/atlatc/api.txt · Last modified: 2023-07-05 17:48 by maverick2797