converting seconds to days and back again

Chris Sheffield revlist at cableone.net
Tue Apr 27 12:43:26 EDT 2004


Thanks, Dar.  Like I said, I missed the obvious.

Chris Sheffield
Software Development
Read Naturally

 


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Dar Scott
Sent: Tuesday, April 27, 2004 10:38 AM
To: How to use Revolution
Subject: Re: converting seconds to days and back again



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

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 4/26/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 4/26/2004
 



More information about the use-livecode mailing list