Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

yearsToMonths

import { yearsToMonths } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert 2 years into months
const result = yearsToMonths(2)
//=> 24
function yearsToMonths(years: number): number;
§
yearsToMonths(years: number): number
[src]

§Parameters

§
years: number
[src]
  • The number of years to be converted

§Return Type

§
number
[src]

The number of years converted in months