/ Published in: PHP
Calculate date time difference
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Calculates the differences between two date * * @param date $date1 * @param date $date2 * @return array */ function dateDifference($date1, $date2) { return array ( "seconds_total" => $diff_secs, ); }
URL: http://stackoverflow.com/questions/388673/php-date-calculation