diff options
author | Y. Wang <yw05@forksworld.de> | 2022-09-04 17:31:09 +0200 |
---|---|---|
committer | Y. Wang <yw05@forksworld.de> | 2022-09-04 17:50:09 +0200 |
commit | 49beb106f00d35296c54a6f15cc663526651d376 (patch) | |
tree | 21e551a285a4f44960f50082d7ceedab667252d0 /assets/manual/man/man3advtrains/rwt_copy.3advtrains.md | |
parent | 9a9023bdf8c846661596ba16b125a5ab1102a25a (diff) | |
download | advtrains-49beb106f00d35296c54a6f15cc663526651d376.tar.gz advtrains-49beb106f00d35296c54a6f15cc663526651d376.tar.bz2 advtrains-49beb106f00d35296c54a6f15cc663526651d376.zip |
Use ldoc instead of manpages
Diffstat (limited to 'assets/manual/man/man3advtrains/rwt_copy.3advtrains.md')
-rw-r--r-- | assets/manual/man/man3advtrains/rwt_copy.3advtrains.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md b/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md deleted file mode 100644 index 5a49048..0000000 --- a/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -titles: -- rwt_copy -- rwt_new -- rwt_to_table -- rwt_to_secs -- rwt_to_string -section: 3advtrains -manual: 'Advtrains Developer''s Manual' -shortdesc: create and copy railway time objects ---- - -# Synopsis - -* `copy(obj)` -* `new(cycles, minutes, seconds)` -* `to_table(obj)` -* `to_secs(obj [, cycles])` -* `to_string(obj [, no_cycles])` - -# Description - -* `copy()` returns a copy of `obj`. -* `new()` creates a new railway time object with the given number of cycles, minutes, and seconds. -* `to_table()`, `to_secs()`, and `to_string()` convert `obj` to a table, number, or string, respectively. If `cycles` is passed to `to_secs()`, that value is used as the number of cycles. If `no_cycles` is passed to `to_string()`, the number of cycles is set to zero. - -# Return Value - -* `copy()` returns the copy that is created. If `obj` is a table, the returned value is not identical to `obj`. -* `new()` returns the newly created object as a table. -* `to_table()`, `to_secs()`, `to_string()` returns the conveerted object. - -# Notes - -`to_table()` returns `obj` if it is a table. |