We Recommend

Object-Oriented Programming in Pascal: A Graphical Approach Object-Oriented Programming in Pascal: A Graphical Approach
Covers all of the essential concepts of objectoriented programming, including object re-use, inheritance, virtual methods, and polymorphisms.


Posted By

TimFletcher on 04/06/08


Tagged

time days Since


Versions (?)


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.