{"id":13561878,"url":"https://github.com/rtfeldman/elm-iso8601-date-strings","last_synced_at":"2025-09-24T06:32:20.633Z","repository":{"id":33421029,"uuid":"132953129","full_name":"rtfeldman/elm-iso8601-date-strings","owner":"rtfeldman","description":"Convert between ISO-8601 date strings and Time.Posix","archived":false,"fork":false,"pushed_at":"2022-11-30T13:09:57.000Z","size":42,"stargazers_count":35,"open_issues_count":8,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T23:49:47.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/rtfeldman/elm-iso8601-date-strings/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/rtfeldman.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":"2018-05-10T20:52:24.000Z","updated_at":"2024-10-11T11:41:08.000Z","dependencies_parsed_at":"2023-01-15T00:51:10.088Z","dependency_job_id":null,"html_url":"https://github.com/rtfeldman/elm-iso8601-date-strings","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtfeldman%2Felm-iso8601-date-strings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtfeldman%2Felm-iso8601-date-strings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtfeldman%2Felm-iso8601-date-strings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtfeldman%2Felm-iso8601-date-strings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtfeldman","download_url":"https://codeload.github.com/rtfeldman/elm-iso8601-date-strings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234050723,"owners_count":18771762,"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":[],"created_at":"2024-08-01T13:01:02.204Z","updated_at":"2025-09-24T06:32:15.317Z","avatar_url":"https://github.com/rtfeldman.png","language":"Elm","funding_links":[],"categories":["Elm"],"sub_categories":[],"readme":"# elm-iso8601\n\nConvert [ISO-8601 date strings](https://en.wikipedia.org/wiki/ISO_8601) into [POSIX times](https://package.elm-lang.org/packages/elm/time/latest/Time#Posix).\n\nThis package takes the view that it is a mistake to use ISO-8601 strings as a\ndata transfer format. Nevertheless, third-party endpoints may use them,\nso even if we'd rather avoid them, sometimes they may be unavoidable.\n\nThe only design goal of this package is to \"correct the mistake\" by translating\nISO-8601 strings to and from `Time.Posix` values. If it encounters a UTC offset\nin the string, it normalizes and discards it such that the resulting `Time.Posix`\nvalue is in UTC no matter what.\n\nThat's all this package does, and all it aims to do!\n\n## Why are integers better?\n\nInteger milliseconds since the epoch is a better choice for data transfer because\nISO-8601 strings can potentially include a UTC offset.\n\nThis is much worse than not having the possibility of including a UTC offset. Consider:\n\n* UTC offsets are not time zones. This does not and cannot tell us the time zone in which the date was recorded. So what are we supposed to do with this information?\n* Users typically want dates formatted according to their local time zone. What if the provided UTC offset is different from the current user's time zone? What are we supposed to do with it then?\n* Despite it being useless (or worse, a source of bugs), the UTC offset creates a larger payload to transfer.\n\nEven without the UTC offset, an ISO-8601 string is still much larger to transfer\nthan an integer. The usual argument in favor of ISO-8601 strings is that they\nare more human-readable than integers, but making data readable for humans is\na better job for developer tools than data transfer formats between machines.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtfeldman%2Felm-iso8601-date-strings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtfeldman%2Felm-iso8601-date-strings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtfeldman%2Felm-iso8601-date-strings/lists"}