{"id":20380200,"url":"https://github.com/dmy/elm-imf-date-time","last_synced_at":"2026-01-07T04:03:25.114Z","repository":{"id":57674996,"uuid":"180032926","full_name":"dmy/elm-imf-date-time","owner":"dmy","description":"Convert between Internet Message Format date \u0026 time strings and elm/time Time.Posix","archived":false,"fork":false,"pushed_at":"2024-04-02T08:42:40.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T03:41:38.716Z","etag":null,"topics":["date","elm","imf","posix","rfc2822","rfc5322","rfc822","time"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/dmy/elm-imf-date-time/latest/","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-07T22:47:04.000Z","updated_at":"2024-04-02T08:34:42.000Z","dependencies_parsed_at":"2022-09-02T14:25:41.644Z","dependency_job_id":null,"html_url":"https://github.com/dmy/elm-imf-date-time","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmy%2Felm-imf-date-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmy%2Felm-imf-date-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmy%2Felm-imf-date-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmy%2Felm-imf-date-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmy","download_url":"https://codeload.github.com/dmy/elm-imf-date-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253036689,"owners_count":21844260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","elm","imf","posix","rfc2822","rfc5322","rfc822","time"],"created_at":"2024-11-15T02:06:30.791Z","updated_at":"2026-01-07T04:03:20.095Z","avatar_url":"https://github.com/dmy.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Internet Message Format** Date \u0026 Time\n\nConvert\n[Internet Message Format](https://tools.ietf.org/html/rfc5322#section-3.3)\ndate and time strings to and from \n[POSIX times](https://package.elm-lang.org/packages/elm/time/latest/Time#Posix).\n\n```sh\n    elm install dmy/elm-imf-date-time\n```\n\nValid strings include date and time strings conforming to\n[RFC5322](https://tools.ietf.org/html/rfc5322#section-3.3),\nas well as the obsolete\n[RFC2822](https://tools.ietf.org/html/rfc2822#section-3.3)\nand\n[RFC822](https://www.w3.org/Protocols/rfc822/#z28), however obsolete formats\nare interpreted following \n[RFC5322 recommendations](https://tools.ietf.org/html/rfc5322#section-4.3).\n\nProduced strings conform to\n[RFC5322](https://tools.ietf.org/html/rfc5322#section-3.3),\nwithout using any\nobsolete format.\n\nThese date and time formats are found for example in\n[HTTP](https://tools.ietf.org/html/rfc7231#section-7.1.1.1),\n[SMTP](https://tools.ietf.org/html/rfc5321)\nand\n[RSS](http://www.rssboard.org/rss-specification).\n\nNew Internet protocols should most likely NOT use this format.  \nAlternatives are\n[POSIX times](https://package.elm-lang.org/packages/elm/time/latest/Time#Posix)\nas advised\n[here](https://package.elm-lang.org/packages/rtfeldman/elm-iso8601-date-strings/latest/)\nor\n[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)\nfollowing recommendations from \n[RFC3339](https://tools.ietf.org/html/rfc3339).\n\n## Examples\n\n```elm\nimport Imf.DateTime\nimport Time\n\nepoch : Time.Posix\nepoch = Time.millisToPosix 0\n\nImf.DateTime.fromPosix Time.utc epoch\n--\u003e \"Thu, 01 Jan 1970 00:00:00 +0000\"\n\nImf.DateTime.toPosix \"1 Jan 70 00:00:00 GMT\"\n--\u003e Ok epoch\n\nest : Time.Zone\nest = Time.customZone -300 []\n\nImf.DateTime.toPosix \"Fri, 11 Jan 2013 08:11:00 GMT\"\n    |\u003e  Result.map (Imf.DateTime.fromPosix est)\n--\u003e Ok (\"Fri, 11 Jan 2013 03:11:00 -0500\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmy%2Felm-imf-date-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmy%2Felm-imf-date-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmy%2Felm-imf-date-time/lists"}