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

Class DateTimeUtc

packages/effect/src/Schema.ts:6939–6947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6937 * @since 3.10.0
6938 */
6939export class DateTimeUtc extends transformOrFail(
6940 String$.annotations({ description: "a string to be decoded into a DateTime.Utc" }),
6941 DateTimeUtcFromSelf,
6942 {
6943 strict: true,
6944 decode: (i, _, ast) => decodeDateTimeUtc(i, ast),
6945 encode: (a) => ParseResult.succeed(dateTime.formatIso(a))
6946 }
6947).annotations({ identifier: "DateTimeUtc" }) {}
6948
6949const timeZoneOffsetArbitrary = (): LazyArbitrary<dateTime.TimeZone.Offset> => (fc) =>
6950 fc.integer({ min: -12 * 60 * 60 * 1000, max: 14 * 60 * 60 * 1000 }).map(dateTime.zoneMakeOffset)

Callers

nothing calls this directly

Calls 3

transformOrFailInterface · 0.85
decodeDateTimeUtcFunction · 0.85
annotationsMethod · 0.65

Tested by

no test coverage detected