Skip to main content
Home

small date utilities

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
9 months ago (0.1.3)
function addMinutes
addMinutes<TDate extends Date>(
date: TDate,
minutes: number,
): TDate

adds a specified number of minutes to a date.

Type Parameters

TDate extends Date

Parameters

date: TDate

the date to add minutes to.

minutes: number

the number of minutes to add.

Return Type

a new date with the added minutes.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";
or

Import directly with a jsr specifier

import { addMinutes } from "jsr:@mary/date-fns";

Add Package

pnpm i jsr:@mary/date-fns
or (using pnpm 10.8 or older)
pnpm dlx jsr add @mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";

Add Package

yarn add jsr:@mary/date-fns
or (using Yarn 4.8 or older)
yarn dlx jsr add @mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";

Add Package

vlt install jsr:@mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";

Add Package

npx jsr add @mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";

Add Package

bunx jsr add @mary/date-fns

Import symbol

import { addMinutes } from "@mary/date-fns";