{"id":23222968,"url":"https://github.com/dckt/rescript-date-fns","last_synced_at":"2026-03-20T01:01:54.382Z","repository":{"id":223018167,"uuid":"758987388","full_name":"DCKT/rescript-date-fns","owner":"DCKT","description":"Bindings for date-fns library","archived":false,"fork":false,"pushed_at":"2024-02-17T17:02:37.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:27:09.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ReScript","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/DCKT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-17T16:53:15.000Z","updated_at":"2024-04-05T08:05:17.000Z","dependencies_parsed_at":"2024-02-17T18:23:29.332Z","dependency_job_id":"22103713-1747-4b83-a9bb-a683ccad4d4a","html_url":"https://github.com/DCKT/rescript-date-fns","commit_stats":null,"previous_names":["dckt/rescript-date-fns"],"tags_count":1,"template":false,"template_full_name":"DCKT/rescript-bindings-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Frescript-date-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Frescript-date-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Frescript-date-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCKT%2Frescript-date-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCKT","download_url":"https://codeload.github.com/DCKT/rescript-date-fns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247365048,"owners_count":20927253,"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-12-18T23:15:33.152Z","updated_at":"2026-01-20T01:24:45.823Z","avatar_url":"https://github.com/DCKT.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rescript-date-fns\n\nReScript bindings for [date-fns](https://date-fns.org/) (targeted version : `~3.3.1`)\n\n## Setup\n\n1. Install the module\n\n```bash\nbun install @dck/rescript-date-fns\n# or\nyarn install @dck/rescript-date-fns\n# or\nnpm install @dck/rescript-date-fns\n```\n\n2. Add it to your `rescript.json` config\n\n```json\n{\n  \"bsc-dependencies\": [\"@dck/rescript-date-fns\"]\n}\n```\n\n## Usage\n\nThe functions can be accessed through `DateFns` module.\n\n```rescript\nlet now = Js.Date.make()\nlet yesterday = now-\u003eDateFns.subDays(1)\nlet isoDate = \"2024-02-17T16:59:23.164Z\"\n\nJs.log(yesterday-\u003eDateFns.isYesterday) // true\nJs.log(isoDate-\u003eDateFns.parseISO-\u003eDateFns.isValid) // true\n```\n\n## Development\n\nInstall deps\n\n```bash\nbun install\n```\n\nCompiles files\n\n```bash\nbun run dev\n```\n\nRun tests\n\n```bash\nbun test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckt%2Frescript-date-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdckt%2Frescript-date-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdckt%2Frescript-date-fns/lists"}