| 6905 | * @since 3.10.0 |
| 6906 | */ |
| 6907 | export class DateTimeUtcFromNumber extends transformOrFail( |
| 6908 | Number$.annotations({ description: "a number to be decoded into a DateTime.Utc" }), |
| 6909 | DateTimeUtcFromSelf, |
| 6910 | { |
| 6911 | strict: true, |
| 6912 | decode: (i, _, ast) => decodeDateTimeUtc(i, ast), |
| 6913 | encode: (a) => ParseResult.succeed(dateTime.toEpochMillis(a)) |
| 6914 | } |
| 6915 | ).annotations({ identifier: "DateTimeUtcFromNumber" }) {} |
| 6916 | |
| 6917 | /** |
| 6918 | * Defines a schema that attempts to convert a `Date` to a `DateTime.Utc` instance using the `DateTime.unsafeMake` constructor. |
nothing calls this directly
no test coverage detected