MCPcopy Create free account
hub / github.com/codemix/graph / dayOfWeek

Method dayOfWeek

packages/graph/src/TemporalTypes.ts:586–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584 }
585
586 public get dayOfWeek(): number {
587 const date = new Date(this.#year, this.#month - 1, this.#day);
588 const dow = date.getDay();
589 return dow === 0 ? 7 : dow;
590 }
591
592 public get quarter(): number {
593 return Math.ceil(this.#month / 3);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected