function years
years(years: number): Milliseconds

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

Duration.years(years as Years).toMilliseconds();

Examples

Example 1

years(1);

Parameters

years: number

Return Type

Usage

import { years } from ".";