Jump to content

how to find days in numbers (php?)...


rootKID

Recommended Posts

Hey again, i have a small but quick question. How to define days in numbers oO?... i saw this online:

$six_day_loader['max_dead_torrent_time'] = 6 * 3600; //6-days...

and was hoping to kind of using this the same way for one of my projects... now, if i wish to delete a forum post after (lets say 12 days)... how to define this in numbers like above here?... how many numbers are there at a day?, and how to find out?..can someone clarify this for me, i just dont get it yet... i think oO?... Hoping you can help somehow again x)...

Link to comment
Share on other sites

That is using Unix timestamps, which indicate the number of seconds since 1/1/70. So, it's in seconds. Their math isn't correct. 3600 seconds is an hour, not a day. Look up the PHP functions time, mktime, getdate, and date.

Link to comment
Share on other sites

ok, thanks! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...