dayNumber関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How many days after 1970-01-01 a day is, counting the calendar and nothing else: a day has no hours here.
インポート
import { dayNumber } from "@johnmorrisdotca/kotoba";
定義
function dayNumber(day: DayKey): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
day | string | A valid YYYY-MM-DD date or moment specified by the signature. |
戻り値
number
How many days after 1970-01-01 a day is, counting the calendar and nothing else: a day has no hours here.
例
import { dayNumber } from "@johnmorrisdotca/kotoba";
console.log(dayNumber("2026-10-12"));20738出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。