Skip to content

Years

aggregating category: date no `||`

Converts a number of years into the corresponding number of seconds (365-day years).

Helper that multiplies the input or parameter (in years) into seconds. A single year is treated as 365 days.

Parameters

1years Optional — accepts: field, INT

Number of years to convert to seconds. 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.
  • A single year is expected to be 365 days.

Examples

From input

Years()

From static parameter

Years(2)

See also

Days, Hours, Minutes, Seconds, Months, AsYears