function weeks
weeks(weeks: number): Milliseconds

Converts weeks to milliseconds. This is shorthand for the following:

Duration.weeks(weeks as Weeks).toMilliseconds();

Examples

Example 1

weeks(1);

Parameters

weeks: number

Return Type

Usage

import { weeks } from ".";