Mwnci sec2time() Function

Syntax

sec2time(integer)

Description

The sec2time() function converts the amount of seconds given into Days, Hours, Minutes, Seconds of elapsed time, and returns the data as a hash.

Example

// The amount of time since 00:00 Jan 1st 1970
println(sec2time(time()))

// Should be a bit or so after 24 hours
println(sec2time(86972))


{"Min": 43, "Sec": 57, "Day": 20074, "Hour": 4}
{"Hour": 0, "Min": 9, "Sec": 32, "Day": 1}