{"id":32244414,"url":"https://github.com/jmackie/purescript-datetime-iso","last_synced_at":"2026-02-27T15:06:06.933Z","repository":{"id":58237348,"uuid":"116845819","full_name":"jmackie/purescript-datetime-iso","owner":"jmackie","description":"📆 🕒 PureScript library for serializing datetimes in simplified extended ISO format.","archived":false,"fork":false,"pushed_at":"2020-10-02T11:05:07.000Z","size":21,"stargazers_count":10,"open_issues_count":5,"forks_count":18,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-13T14:41:51.666Z","etag":null,"topics":["date-formatting","iso8601","purescript"],"latest_commit_sha":null,"homepage":"http://pursuit.purescript.org/packages/purescript-datetime-iso","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmackie.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-01-09T17:08:23.000Z","updated_at":"2023-08-19T23:20:36.000Z","dependencies_parsed_at":"2022-08-30T22:31:04.328Z","dependency_job_id":null,"html_url":"https://github.com/jmackie/purescript-datetime-iso","commit_stats":null,"previous_names":["jmackie4/purescript-datetime-iso"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jmackie/purescript-datetime-iso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fpurescript-datetime-iso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fpurescript-datetime-iso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fpurescript-datetime-iso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fpurescript-datetime-iso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmackie","download_url":"https://codeload.github.com/jmackie/purescript-datetime-iso/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fpurescript-datetime-iso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29901203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T14:46:13.553Z","status":"ssl_error","status_checked_at":"2026-02-27T14:46:10.522Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-formatting","iso8601","purescript"],"created_at":"2025-10-22T16:38:37.158Z","updated_at":"2026-02-27T15:06:06.916Z","avatar_url":"https://github.com/jmackie.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-datetime-iso\n\n[![Pursuit version](https://pursuit.purescript.org/packages/purescript-datetime-iso/badge)](https://pursuit.purescript.org/packages/purescript-datetime-iso)\n[![Build status](https://travis-ci.org/jmackie/purescript-datetime-iso.svg?branch=master)](https://travis-ci.org/jmackie/purescript-datetime-iso)\n\n```\n2018-01-31T20:15:40.343Z\n```\n\n## Description\n\nProvides a minimal [`DateTime`](https://github.com/purescript/purescript-datetime/)  wrapper that encodes/decodes to/from the *simplified* extended ISO format ([`ISO 8601`](https://en.wikipedia.org/wiki/ISO_8601)); specifically `YYYY-MM-DDTHH:mm:ss[.sss]Z` where hyphens and colons can be omitted.\n\nIf you're handling dates that *aren't* in this format you should check out the [purescript-formatters](https://github.com/slamdata/purescript-formatters) package instead.\n\n## Installation\n\n```\nbower install purescript-datetime-iso\n```\n\n## Usage\n\nHere's a motivating example:\n\n```purescript\nmodule Data.Event where\n\nimport Prelude\n\nimport Data.DateTime.ISO (ISO, unwrapISO)\nimport Data.Argonaut.Decode (class DecodeJson, decodeJson, (.?))\nimport Data.DateTime (DateTime)\nimport Data.Newtype (unwrap)\n\nnewtype Event = Event\n    { timestamp   :: DateTime\n    , description :: String\n    }\n\ninstance decodeJsonEvent :: DecodeJson Event where\n    decodeJson json = do\n        obj \u003c- decodeJson json\n        timestamp \u003c- obj .? \"timestamp\" \u003c#\u003e unwrapISO\n        description \u003c- obj .? \"description\"\n        pure $ Event { timestamp, description }\n```\n\n## Documentation\n\nModule documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-datetime-iso).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmackie%2Fpurescript-datetime-iso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmackie%2Fpurescript-datetime-iso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmackie%2Fpurescript-datetime-iso/lists"}