Hacker News new | ask | show | jobs
by d0mine 520 days ago
It is easier in Python:

    >>> from email.utils import parsedate_tz, mktime_tz
    >>> mktime_tz(parsedate_tz("Fri, 17 Jan 2025 06:07:07"))
    1737094027
It converts rfc 2822 time into POSIX timestamp ([mean solar] seconds since epoch--elapsed SI seconds not counting leap seconds).