TinyMUX

Singletime()

Functions

FUNCTION: singletime(<seconds>)

This function converts seconds to a single time element which is the lowest approximation to the given number of <seconds>.

Example:

> say singletime(45)
You say, "45s"
> say singletime(12345)
You say, "3h"
> say singletime(123456)
You say, "1d"

Related Topics: writetime(), exptime(), digittime(), secs(), time().