EllisLab/CodeIgniter — Issue #797: timespan() uses wrong value for calculation
Author: H4mst0R
Created: 2011-12-19 12:17:17+00:00
State: open

timespan() acually uses 31536000 for "seconds per year":

60 (seconds) * 60 (minutes) * 24 (hours) * 365 (days) = 31536000

but a real year has 365,25 days

so it would have 31557600 seconds

if I use this function for calculating an age of a person (let's say the birthday is on December the 20th 1983) and today is December the 19th 2011, it would say that the person is 28 years old, but the 28th birthday would be tomorrow