Skip to main content

asWeeks

Converts a duration from seconds to weeks.

Parameters

  • DURATION (number)

    The number of seconds to convert. This can be an integer or a decimal.

Examples

ATL in Script

Result

[[asWeeks(1209600)]]

2

[[asWeeks(1250000)]]

2.07

To reduce the result to its integer part, use truncate.

ATL in Script

Result

[[asWeeks(1250000)]]

2.07

[[truncate(asWeeks(1250000))]]

2