Daytypetype Day = Brand<string, "Day">;A UTC day, YYYY-MM-DD, that exists on the calendar.
Days as the quality system keeps them (commons 0001-quality-evidence FR-021, FR-030): a UTC day as YYYY-MM-DD, the instant at the end of a day, and the day of an instant. Pure: the day today is always an argument.
Daytypetype Day = Brand<string, "Day">;A UTC day, YYYY-MM-DD, that exists on the calendar.
isDayfunctionno test imports itfunction isDay(text: string): booleanWhether a text is a day on the calendar.
dayDecoderconstno test imports itconst dayDecoder: Decoder<Day>A decoder of a day.
dayOfTextfunctionfunction dayOfText(text: string): Result<Day, string>A day as such, or why it is not one.
dayOfNanosfunctionno test imports itfunction dayOfNanos(nanos: bigint): DayThe UTC day of nanoseconds since the Unix epoch.
noonOffunctionno test imports itfunction noonOf(day: string): Instant | undefinedThe instant of noon UTC on a day: the time a day-grained piece of evidence is held to its cadence from.