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

dailySeedfunction

Today's seed, the date as a number: 2026-09-30 is 20260930. UTC unless a zone is named.

Import it

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

Definition

function dailySeed(at: Date, timeZone?: string): number

Parameters

NameTypeDescription
atDate

The moment to read as a calendar day.

timeZone (optional)string

The IANA time-zone name; UTC when omitted.

Returns

number

Today's seed, the date as a number: 2026-09-30 is 20260930. UTC unless a zone is named.

Examples

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

console.log(dailySeed(new Date("2026-10-11T12:00:00Z"), "UTC"));
20261011

What it prints (run when this page was built)

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