{"id":16841813,"url":"https://github.com/svozza/sanctuary-date-poc","last_synced_at":"2025-03-18T05:23:52.079Z","repository":{"id":84264054,"uuid":"49774963","full_name":"svozza/sanctuary-date-poc","owner":"svozza","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-02T20:41:28.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"everything","last_synced_at":"2025-01-24T12:13:19.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svozza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-16T13:43:18.000Z","updated_at":"2016-01-16T13:44:28.000Z","dependencies_parsed_at":"2023-04-25T07:35:13.215Z","dependency_job_id":null,"html_url":"https://github.com/svozza/sanctuary-date-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fsanctuary-date-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fsanctuary-date-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fsanctuary-date-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fsanctuary-date-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svozza","download_url":"https://codeload.github.com/svozza/sanctuary-date-poc/tar.gz/refs/heads/everything","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244161385,"owners_count":20408305,"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-10-13T12:43:04.087Z","updated_at":"2025-03-18T05:23:52.046Z","avatar_url":"https://github.com/svozza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A proof of concept for a type safe version of [**date-fp**](https://github.com/cullophid/date-fp)\nthat returns an `Either` if an operation results in an invalid date. Run time type checking\nis provided by [**sanctuary-def**](https://github.com/plaid/sanctuary-def). All\ntypes except `TimeUnit` are defined [there](https://github.com/plaid/sanctuary-def#types).\n\n## Functions:\n\n### add :: TimeUnit -\u003e Integer -\u003e ValidDate -\u003e Either String ValidDate\n\n### convertTo :: TimeUnit -\u003e ValidDate -\u003e ValidNumber\n\n### diff :: TimeUnit -\u003e ValidDate -\u003e ValidDate -\u003e Integer\n\n### equals :: ValidDate -\u003e ValidDate -\u003e Boolean\n\n### get :: TimeUnit -\u003e ValidDate -\u003e Integer\n\n### isLeapYear :: ValidDate -\u003e Boolean\n\n### isValid :: Any -\u003e Boolean\n\n### min :: [ValidDate] -\u003e ValidDate\n\n### max :: [ValidDate] -\u003e ValidDate\n\n### parse :: String -\u003e String -\u003e Either String ValidDate\n\n### set :: TimeUnit -\u003e Integer -\u003e ValidDate -\u003e Either String ValidDate\n\n### unixTime :: ValidDate -\u003e Integer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvozza%2Fsanctuary-date-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvozza%2Fsanctuary-date-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvozza%2Fsanctuary-date-poc/lists"}