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
| Name | Type | Description |
|---|---|---|
at | Date | 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"));20261011What it prints (run when this page was built)