PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Stryks
Forum Regular
Posts: 746 Joined: Wed Jan 14, 2004 5:06 pm
Post
by Stryks » Thu May 12, 2005 12:17 am
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
SBro
Forum Commoner
Posts: 98 Joined: Tue Sep 30, 2003 10:06 pm
Post
by SBro » Thu May 12, 2005 12:22 am
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.
Stryks
Forum Regular
Posts: 746 Joined: Wed Jan 14, 2004 5:06 pm
Post
by Stryks » Thu May 12, 2005 12:29 am
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.