Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jun 12th, 2004, 4:43 PM   #1
stoodder
Newbie
 
Join Date: Jun 2004
Posts: 2
Rep Power: 0 stoodder is on a distinguished road
heyguys, well what im doing is working on a game currently, and what it has is something called ticks, what this does is liek every 5 minutes it updates the dataase and to reduce the amount of connections and queries to the database instead of changing certainfields.. for exampel that only run 20 "ticks" after you set somehting, i want to set a finish date, the only problem i run into is that the end date is usually right in between a tick... my plan now is to justround ot a number that is dividable by 300 in the unix time format.

hmm..
lol thats not that clear but for example if i had this is a time:

87587978

i would want to round that to the nearest number that is divisible by three hundred
lol if anyone has nay solution please reply

i thought of maybe using osmehting sorta liek
for($i = time;$i%300;$i++)
{
$endtime = $i
}

but that would be very bakc breaking sorta...
stoodder is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:47 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC