()
| 835 | } |
| 836 | |
| 837 | public get week(): number { |
| 838 | const date = new Date(Date.UTC(this.#year, this.#month - 1, this.#day)); |
| 839 | const dayNum = date.getUTCDay() || 7; |
| 840 | date.setUTCDate(date.getUTCDate() + 4 - dayNum); |
| 841 | const yearStart = new Date(Date.UTC(date.getUTCFullYear(), 0, 1)); |
| 842 | return Math.ceil(((date.getTime() - yearStart.getTime()) / 86400000 + 1) / 7); |
| 843 | } |
| 844 | |
| 845 | public get dayOfWeek(): number { |
| 846 | const date = new Date(this.#year, this.#month - 1, this.#day); |
nothing calls this directly
no outgoing calls
no test coverage detected