Converts years to seconds.
YEARS2SECONDS(years)
years |
- |
A scalar or series, the years values. |
A series or array of Seconds values.
years2seconds(3)
Returns 94608000, the number of seconds in three years.
seconds2years(years2seconds(3))
Returns 3.0 years showing SECONDS2YEARS and YEARS2SECONDS are inverse functions.
W1: 0..0.2..1
W2: years2hours(w1)
W3: hours2years(w2)
W1 contains the years series {0, 0.2, 0.4, 0.6, 0.8, 1.0}.
W2 contains the hour series {0, 1752, 3504, 5256, 7008, 8760}.
W3 recovers the original years series.
YEARS2HOURS converts a year value or series to hours.
YEARS2HOURS assumes that a leap year can occur four years after the first full year.
See SECONDS2YEARS to convert seconds to years.