aboutsummaryrefslogtreecommitdiff
path: root/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md
diff options
context:
space:
mode:
Diffstat (limited to 'assets/manual/man/man3advtrains/rwt_copy.3advtrains.md')
-rw-r--r--assets/manual/man/man3advtrains/rwt_copy.3advtrains.md15
1 files changed, 9 insertions, 6 deletions
diff --git a/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md b/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md
index 99dfaf1..1d2ba28 100644
--- a/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md
+++ b/assets/manual/man/man3advtrains/rwt_copy.3advtrains.md
@@ -1,9 +1,12 @@
-% RWT_COPY(3ADVTRAINS) | Advtrains Developer's Manual
+---
+title: 'rwt_copy(3advtrains)'
+manual: 'Advtrains Developer''s Manual'
+---
-# NAME
+# Name
`copy`, `new`, `to_table`, `to_secs`, `to_string` - Create and copy railway time objects
-# SYNOPSIS
+# Synopsis
* `copy(obj)`
* `new(cycles, minutes, seconds)`
@@ -11,18 +14,18 @@
* `to_secs(obj [, cycles])`
* `to_string(obj [, no_cycles])`
-# DESCRIPTION
+# 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
+# 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
+# Notes
`to_table()` returns `obj` if it is a table.