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

Method dayOfWeek

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

Source from the content-addressed store, hash-verified

843 }
844
845 public get dayOfWeek(): number {
846 const date = new Date(this.#year, this.#month - 1, this.#day);
847 const dow = date.getDay();
848 return dow === 0 ? 7 : dow;
849 }
850
851 public get quarter(): number {
852 return Math.ceil(this.#month / 3);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected