-
Notifications
You must be signed in to change notification settings - Fork 0
DateClass
github-actions[bot] edited this page Nov 23, 2024
·
7 revisions
Converts a number of seconds into a human-readable string. By default, the
result is returned as a table of three strings. However, if the as_string
parameter is provided, the result is returned as a single string.
Parameters
-
seconds
(number
) - The number of seconds to convert. -
as_string
(boolean?
) - Whether to return the result as a string.
Returns
string[]|string
- The resulting string or table of strings.
Examples
date.shms(6543)
--"01"
--"49"
--"03"
date.shms(6453, true)
-- "1h 49m 3s"
Documentation generated with Gludoc.