Jump to content

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


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...