Finding # of Days between two timestamps
Posted: Mon Aug 13, 2007 12:59 am
Hello All,
For some reason, I have never been good when it comes to manipulating date information.
So...
I have 2 timestamps:
Now, how would I find the number of days $time_between is.
I've tired dividing it by 60 and then by 24, and multiplying it by 60 and then 24, but nothing works.
Any Thoughts?
Thanks in Advance
For some reason, I have never been good when it comes to manipulating date information.
So...
I have 2 timestamps:
Code: Select all
<?php
$start = strtotime('SomeDateInthePast');
$end = time();
$time_between = $end - $start;
?>I've tired dividing it by 60 and then by 24, and multiplying it by 60 and then 24, but nothing works.
Any Thoughts?
Thanks in Advance