| 6937 | * @since 3.10.0 |
| 6938 | */ |
| 6939 | export 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 | |
| 6949 | const timeZoneOffsetArbitrary = (): LazyArbitrary<dateTime.TimeZone.Offset> => (fc) => |
| 6950 | fc.integer({ min: -12 * 60 * 60 * 1000, max: 14 * 60 * 60 * 1000 }).map(dateTime.zoneMakeOffset) |
nothing calls this directly
no test coverage detected