12.12.2011, 15:30
if u use gettime() it gets the actual time and date.
By subtracting 2 different unix timestamps u can get the time (in seconds) it lasted from the first to the second timestamp.
Php has functions to convert this number into different formats.
http://php.net/manual/de/function.date.php
By subtracting 2 different unix timestamps u can get the time (in seconds) it lasted from the first to the second timestamp.
Php has functions to convert this number into different formats.
http://php.net/manual/de/function.date.php