dayOfWeekfunction
The day of the week of a moment in UTC: 0 Sunday to 6 Saturday.
Import it
import { dayOfWeek } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function dayOfWeek(when: When): number
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
Returns
number
0 to 6.
Examples
import { dayOfWeek } from "@johnmorrisdotca/wakusei-planets/time";
console.log(dayOfWeek(Date.UTC(1954, 5, 30)));3What it prints (run when this page was built)