Reference · Streams, draws and seeds
dayOfSeedfunction
The day a seed names inside a block, or null for a seed that names none. The inverse of daySeed.
Import it
import { dayOfSeed } from "@johnmorrisdotca/tane";
Definition
function dayOfSeed(seed: number, block: SeedBlock): DayKey | null
Parameters
| Name | Type | Description |
|---|---|---|
seed | number | The numeric seed, read as an unsigned 32-bit integer by the stream. |
block | SeedBlock | The reserved seed block: its starting seed and length. |
Returns
string | null
The day a seed names inside a block, or null for a seed that names none. The inverse of daySeed.
Examples
import { dayOfSeed, daySeed } from "@johnmorrisdotca/tane";
const block = { from: 1000000000, size: 100000000 };
console.log(dayOfSeed(daySeed("2026-10-11", block), block));2026-10-11What it prints (run when this page was built)