mimekit-ts - v1.0.0
    Preparing search index...

    Function parseDate

    • Try to parse input into a DateTimeOffset value.

      Parses an RFC 822 date and time from the supplied text or byte buffer.

      Parameters

      • text: string | Uint8Array<ArrayBufferLike>

        Input text or bytes.

      Returns Result<DateTimeOffset>

      a Result; { ok: false } with a MimeError on malformed input.