TinyMUX

Writetime()

Functions

FUNCTION: writetime(<seconds>)

This function converts seconds to a number of time elements (hours, minutes, seconds) that is equivalent to the given number of <seconds>.

This is very similar to the exptime() function, but the elements are given their long names instead of short names.

Example:

> say writetime(45)
You say, "45 seconds"
> say writetime(12345)
You say, "3 hours 25 minutes 45 seconds"
> say writetime(123456)
You say, "1 day 10 hours 17 minutes 36 seconds"

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