This is an old revision of the document!
These functions are accessible at
advtrains.lines.rwt.*
set_time(t) get_time() now() new(c, m, s) copy(rwtime) to_table(rwtime) to_secs(rwtime, c_over) to_string(rwtime_p, no_cycle)
add(t1, t2) diff(t1, t2) sub(t1, t2) adj_diff(t1, t2, thresh)
adjust_cycle(rwtime, reftime_p, thresh) adjust(rwtime, reftime, thresh)
get_time_until(deptime, rwtime_p)
time_to_next_rpt(rwtime, rpt_interval, rpt_offset) time_from_last_rpt(rwtime, rpt_interval, rpt_offset) next_rpt(rwtime, rpt_interval, rpt_offset) local rwtime_s = rwt.to_secs(rwtime) local rpti_s = last_rpt(rwtime, rpt_interval, rpt_offset)