How Many Seconds in a Year?
erics, September 12th, 2012
There are 31556900 seconds per year.
This simple formula will give a Y2K-compliant 4-digit year with low overhead:
1 |
$year = (localtime)[5] + 1900; |