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

quartersToYears

import { quartersToYears } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert 8 quarters to years
const result = quartersToYears(8)
//=> 2
@example
// It uses floor rounding:
const result = quartersToYears(11)
//=> 2
function quartersToYears(quarters: number): number;
§
quartersToYears(quarters: number): number
[src]

§Parameters

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

§Return Type

§
number
[src]

The number of quarters converted in years