converting seconds to days and back again

Dar Scott dsc at swcp.com
Tue Apr 27 12:38:07 EDT 2004


On Tuesday, April 27, 2004, at 10:29 AM, Chris Sheffield wrote:

> So say I have "the seconds" saved to some file.  If I read that in and 
> get
> the number of seconds that have passed, how can I convert that to the 
> number
> of days?  Is there a way?  I'm probably just missing the obvious.

Divide by the number of seconds in a day (60 X 60 X 24).  Depending on 
your usage you may want to round or truncate.

Dar Scott



More information about the use-livecode mailing list