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

monthsToQuarters

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

§Parameters

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

§Return Type

§
number
[src]

The number of months converted in quarters