This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
SecondsToUptime
- SecondsToUptime(seconds): String
-
Format system uptime in seconds as string in format "n days, hh:mm". The day part is always present and always says "days", hours are padded with a space, not a zero, and the value is rounded to the nearest minute. A negative value is formatted as its absolute value with a leading minus sign (
SecondsToUptime(-90061)returns "-1 days, 1:01").FormatTimeSpan() uses a different format: it leaves out the day part when it is zero, says "1 day" for one day, and pads hours with a zero (
FormatTimeSpan(600)returns "00:10"). Check scripts that parse the result before replacing calls.Table 1. Parameters seconds
Integer
Number of seconds.
ReturnSystem uptime in format "n days, hh:mm".
println(SecondsToUptime(600)); // Will print "0 days, 0:10"