in reply to How do I convert seconds into a readable time?
function convertToTime(seconds) var thex var they var thez var mind mind = Int(seconds) thex = mind Mod 60 if thex = 0 thex = mind / 60 else mind = (int(mind ) - int(thex)) end they = mind Mod 3600 if they = 0 they = mind / 3600 else mind = mind - they end thez = mind / 60 theTime = thez/60 + ":" + they/60 + ":" + thex return theTime end
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I convert seconds into a readable time?
by zengargoyle (Deacon) on Oct 21, 2003 at 15:30 UTC |