Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/complaindate/mod.ts>addDays

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
function addDays
import { addDays } from "https://deno.land/x/complaindate@v0.7.2/mod.ts";

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

Parameters

days: number

The number of days to add or subtract

Returns

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

A curried function that operates on plain-dates