MCPcopy Index your code
hub / github.com/Effect-TS/effect / toString

Method toString

packages/cli/src/internal/prompt/date.ts:580–588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

578 }
579
580 toString() {
581 const month = this.date.getMonth()
582 return Match.value(this.token.length).pipe(
583 Match.when(2, () => `${month + 1}`.padStart(2, "0")),
584 Match.when(3, () => this.locales!.monthsShort[month]!),
585 Match.when(4, () => this.locales!.months[month]!),
586 Match.orElse(() => `${month + 1}`)
587 )
588 }
589}
590
591class Year extends DatePart {

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected