Skip to content

AsYears

aggregating category: arithmetic no `||`

Converts an integer number of seconds into the equivalent number of years.

Helper that divides the input or parameter (in seconds) by 60 * 60 * 24 * 365 to produce the equivalent number of years.

Parameters

1seconds Optional — accepts: field, INT

Number of seconds to convert to years. If omitted, a single integer input must be provided.

Input type

  • INT

Output type

  • INT

Requires

  • Either a single value must be presented as an input or a single integer parameter must be provided.

Examples

From input

AsYears()

From static parameter

AsYears(94608000)

See also

AsDays, AsHours, AsMinutes, AsMonths, AsSeconds, Years