Skip to main content
Version: Next

count_weeks

Counts the number of weeks in a duration.

count_weeks(x:duration) -> float

Description

This function returns the number of weeks in a duration, i.e., duration / 1w.

x: duration

The duration to count in.

See Also

count_years, count_months, count_weeks, count_days, count_hours, count_minutes, count_seconds, count_milliseconds, count_microseconds, count_nanoseconds