Posted By

TimFletcher on 04/06/08


Tagged

time days Since


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

xida


Simple Days Since


 / Published in: Other
 

  1. <?php
  2. function days_since ($time) {
  3. $startdate = strtotime($time);
  4. $presentdate = time();
  5. $days = round(($presentdate - $startdate)/86400);
  6. return $days;
  7. }
  8. ?>

Report this snippet  

You need to login to post a comment.