PHP function to calculate the elapsed time. Calculate the elapsed hours, days, weeks and years. Days, weeks and years to count the change at midnight, and not 24 hours. (yesterday 23:59 time in the next day 2:00 yesterday's result has received)
Call this function, with the following parameters:
- $tp - The time that comparison is. (Number of seconds since January 1st 1970, PHP time() function result)
- $time - The time for which comparison is. (If not specified, the current time)
In the code should be modified in the $days and $terms array. Comments available in Hungarian and German version as well.