Page 1 of 1

time() manipulation

Posted: Thu May 12, 2005 12:17 am
by Stryks
Hi all,

Just wanting to figure something out about the time() function.

I have a routine which saves the current time() into the database and then removes old ones by running a delete where saved_time > time() + 1440.

How much time is that buying me? As far as I can tell, it's like, 24 minutes.

Am I right there?

Cheers

Posted: Thu May 12, 2005 12:22 am
by SBro
And you would be correct :) 1440 seconds is 24 minutes. Although I can't see how the saved time would ever be greater then the current time + 24 minutes.

Posted: Thu May 12, 2005 12:29 am
by Stryks
Hehehe, Rightchooare ... That would be saved_time < time() + 1440.

Cheers though ... it explains alot. I think it was supposed to be 24 hours, not 24 minutes.

:D