Skip to the content

Tenka天下

Play seeded world conquest for two to six, with dice battles, cards, computer players and saved games.

Tenka means the world under heaven in Japanese. About the name

Contents

Reference · Rules, maps and records

tenkaDayfunction

The day a moment falls on, in UTC, written YYYY-MM-DD. Throws a RangeError for an invalid Date.

Import it

import { tenkaDay } from "@johnmorrisdotca/tenka";

Definition

function tenkaDay(at: Date): string

Parameters

NameTypeDescription
atDate

The date whose UTC day selects the daily seed.

Returns

string

The day a moment falls on, in UTC, written YYYY-MM-DD. Throws a RangeError for an invalid Date.

Examples

import { tenkaDay } from "@johnmorrisdotca/tenka";

console.log(tenkaDay(new Date("2026-10-12T12:00:00Z")));
2026-10-12

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tenka 2.2.0.