()
| 2033 | } |
| 2034 | |
| 2035 | override toString() { |
| 2036 | const month = this.date.getMonth() |
| 2037 | switch (this.token.length) { |
| 2038 | case 2: |
| 2039 | return `${month + 1}`.padStart(2, "0") |
| 2040 | case 3: |
| 2041 | return this.locales!.monthsShort[month]! |
| 2042 | case 4: |
| 2043 | return this.locales!.months[month]! |
| 2044 | default: |
| 2045 | return `${month + 1}` |
| 2046 | } |
| 2047 | } |
| 2048 | } |
| 2049 | |
| 2050 | class Year extends DatePart { |
nothing calls this directly
no outgoing calls
no test coverage detected