[SOLVED] Â Time difference PHP |
11/10/2014 9:42:36 AM |
PHPRunner General questions | |
S
sickacid author
Hi, in import page, before record added i want to calcolate time difference between two Times, i've done this code: |
|
![]() |
Admin 11/10/2014 |
According to PHP documentation at http://php.net/manual/en/function.date.php date() function returns time of the day as opposed to time difference. 'H' parameter returns hour value in the range of 0-23. You do need to subtract 3600 if you want to get the time difference. $time1=strtotime($values['MattinoInizio']); |