MCPcopy Create free account
hub / github.com/Effect-TS/effect / toString

Method toString

packages/effect/src/unstable/cli/Prompt.ts:2035–2047  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
2050class Year extends DatePart {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected