Skip to main content
Module

x/complaindate/mod.ts>addQuarters

JavaScript date-time utilities that keep timezones on the surface
Latest
function addQuarters
import { addQuarters } from "https://deno.land/x/complaindate@v1.0.1/mod.ts";

Get a function curried with a number of quarters to add to its plain-date arguments.

The resulting day-of-month will always be within the expected quarter, days will not spill over into the next quarter.

Parameters

quarters: number

The number of quarters to add or subtract

Returns

<T extends ComPlainDate>(date: T) => T

A curried function that operates on plain-dates