Skip to the content

Tane種

Reproduce numbers from a seed, shuffle or pick items, share a daily puzzle and resume a saved stream.

Tane means seed in Japanese. About the name

Contents

Reference · Streams, draws and seeds

addDaysfunction

The day by days after (or, negative, before) a day.

Import it

import { addDays } from "@johnmorrisdotca/tane";

Definition

function addDays(day: DayKey, by: number): DayKey

Parameters

NameTypeDescription
daystring

A real calendar day in YYYY-MM-DD form.

bynumber

The signed number of calendar days to add.

Returns

string

The day by days after (or, negative, before) a day.

Examples

import { addDays } from "@johnmorrisdotca/tane";

console.log(addDays("2026-10-11", 1));
2026-10-12

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tane 1.3.0.