blob: ec73e9c7960d3ad0700e6f0bca4abddcf9386b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
% RWT_ADD(3ADVTRAINS) | Advtrains Developer's Manual
# NAME
`add`, `diff`, `sub` - Add or subtract railway time objects
# SYNOPSIS
* `add(t1, t2)`
* `diff(t1, t2)`
* `sub(t1, t2)`
# DESCRIPTION
* `add()` returns the result of adding `t1` and `t2`.
* `diff()` returns the result of subtracting `t1` from `t2`.
* `sub()` returns the result of subtracting `t2` from `t1`.
# RETURN VALUE
`add()` and `sub()` return their results as tables. `diff()` returns its result as a number.
|