rokuyoOffunction
The day of the six-day cycle (六曜, rokuyō) of a Gregorian date.
Import it
import { rokuyoOf } from "@johnmorrisdotca/koyomi-calendars/japanese";
Also exported from: @johnmorrisdotca/koyomi-calendars
Definition
function rokuyoOf(year: number, month: number, dayOfMonth: number): Rokuyo | null
Parameters
| Name | Type | Description |
|---|---|---|
year | number | Four-digit year. |
month | number | Month 1 to 12. |
dayOfMonth | number | Day of the month. |
Returns
Rokuyo | null
The day, or null where the old calendar date is not sure.
Examples
import { rokuyoOf } from "@johnmorrisdotca/koyomi-calendars/japanese";
console.log(rokuyoOf(2026, 11, 3)?.en);Tomobiki (friends pulled along)What it prints (run when this page was built)