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

daysBetweenfunction

How many days to is after from: negative when it is before.

Import it

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

Definition

function daysBetween(from: DayKey, to: DayKey): number

Parameters

NameTypeDescription
fromstring

The starting calendar day.

tostring

The ending calendar day.

Returns

number

How many days to is after from: negative when it is before.

Examples

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

console.log(daysBetween("2026-10-11", "2026-10-14"));
3

What it prints (run when this page was built)

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