Cuantos segundos en un año
31536000
Tani
31536000
Exactly*: 365.2422 * 86400 =
31556926.08 s
31536000
console.log(60 * 60 * 24 * 365)
31556926
1 year = 365.2425 days = (365.2425 days) × (24 hours/day) × (3600 seconds/hour) = 31556952 seconds
One Julian astronomical year, has 365.25 days:
1 year = 365.25 days = (365.25 days) × (24 hours/day) × (3600 seconds/hour) = 31557600 seconds
One calendar common year has 365 days:
1 common year = 365 days = (365 days) × (24 hours/day) × (3600 seconds/hour) = 31536000 seconds
One calendar leap year has 366 days (occures every 4 years):
1 leap year = 366 days = (366 days) × (24 hours/day) × (3600 seconds/hour) = 31622400 seconds
If you're stuck on a mean coding exercise, remember we have leap years.
In other words, a year is not 365 days, but roughly 365.25 days.
60 * 60 * 24 * 365.25 = 31557600 seconds.