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

Method toString

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

Source from the content-addressed store, hash-verified

1960 }
1961
1962 override toString() {
1963 const hours = /h/.test(this.token)
1964 ? this.date.getHours() % 12 || 12
1965 : this.date.getHours()
1966 return this.token.length > 1
1967 ? `${hours}`.padStart(2, "0")
1968 : `${hours}`
1969 }
1970}
1971
1972class Day extends DatePart {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected