1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<?PHP
function date_diff_f1($str_start, $str_end) {
$str_start = strtotime($str_start); // The start date becomes a timestamp $str_end = strtotime($str_end); // The end date becomes a timestamp
$nseconds = $str_start-$str_end; // Number of seconds between the two dates
return $nseconds; }
?>
|