()
| 576 | } |
| 577 | |
| 578 | public get week(): number { |
| 579 | const date = new Date(Date.UTC(this.#year, this.#month - 1, this.#day)); |
| 580 | const dayNum = date.getUTCDay() || 7; |
| 581 | date.setUTCDate(date.getUTCDate() + 4 - dayNum); |
| 582 | const yearStart = new Date(Date.UTC(date.getUTCFullYear(), 0, 1)); |
| 583 | return Math.ceil(((date.getTime() - yearStart.getTime()) / 86400000 + 1) / 7); |
| 584 | } |
| 585 | |
| 586 | public get dayOfWeek(): number { |
| 587 | const date = new Date(this.#year, this.#month - 1, this.#day); |
nothing calls this directly
no outgoing calls
no test coverage detected