Skip to content

AsMonths

aggregating category: arithmetic no `||`

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

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

Parameters

1seconds Optional — accepts: field, INT

Number of seconds to convert to months. 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

AsMonths()

From static parameter

AsMonths(38880000)

See also

AsDays, AsHours, AsMinutes, AsSeconds, AsYears, Months