@maschinenlesbar.org/lebensmittelwarnung-cli
    Preparing search index...

    Function parsePubDate

    • Read a feed pubDate into epoch milliseconds, or undefined when it isn't one of the forms below. Strict on purpose: Date.parse read 02.10.2026 16:52 as 10 February, a zone-less stamp in the host's time zone (so --since gave different answers on a Tokyo host), and CEST, MESZ or German month names not at all.

      • RFC 822 / RFC 5322, the feed's form: Fri, 2 Oct 2026 16:52:00 +0200. The weekday is optional and not checked; month names may be English or German (Okt, Mär, Dezember); a two-digit year is 1950–2049; the zone may be numeric, GMT/UT/ UTC/Z, CET/MEZ, CEST/MESZ or a US zone of RFC 822.
      • ISO 8601: 2026-10-02T16:52:00+02:00, 2026-10-02.
      • German numeric: 02.10.2026 16:52, 02.10.2026.

      A stamp without a zone is German time (Europe/Berlin), as the portal publishes in.

      Parameters

      • text: string

      Returns number | undefined