{"id":13397935,"url":"https://github.com/date-fns/date-fns","last_synced_at":"2025-05-12T16:12:07.340Z","repository":{"id":21522441,"uuid":"24841635","full_name":"date-fns/date-fns","owner":"date-fns","description":"⏳ Modern JavaScript date utility library ⌛️","archived":false,"fork":false,"pushed_at":"2024-09-23T08:07:29.000Z","size":23128,"stargazers_count":35718,"open_issues_count":813,"forks_count":1821,"subscribers_count":207,"default_branch":"main","last_synced_at":"2025-05-05T12:48:57.917Z","etag":null,"topics":["date","date-fns","hacktoberfest","javascript","modules","nodejs","time","utilities"],"latest_commit_sha":null,"homepage":"https://date-fns.org","language":"TypeScript","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/date-fns.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["kossnocorp"],"patreon":null,"open_collective":"date-fns","ko_fi":null,"tidelift":null,"community_bridge":null,"custom":null}},"created_at":"2014-10-06T10:24:22.000Z","updated_at":"2025-05-05T11:49:49.000Z","dependencies_parsed_at":"2023-12-16T06:43:36.781Z","dependency_job_id":"7a4ccff6-f739-4c18-9e34-1a125a3bc90b","html_url":"https://github.com/date-fns/date-fns","commit_stats":{"total_commits":2077,"total_committers":427,"mean_commits":4.864168618266979,"dds":0.6509388541165142,"last_synced_commit":"6c70ac6d073ebe869e42795f5e71dfecf5abbea0"},"previous_names":[],"tags_count":208,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/date-fns%2Fdate-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/date-fns%2Fdate-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/date-fns%2Fdate-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/date-fns%2Fdate-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/date-fns","download_url":"https://codeload.github.com/date-fns/date-fns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252512809,"owners_count":21760082,"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","date-fns","hacktoberfest","javascript","modules","nodejs","time","utilities"],"created_at":"2024-07-30T18:01:54.901Z","updated_at":"2025-05-12T16:12:07.316Z","avatar_url":"https://github.com/date-fns.png","language":"TypeScript","readme":"🔥️ **NEW**: [date-fns v4.0 with first-class time zone support is out!](https://blog.date-fns.org/v40-with-time-zone-support/)\n\n\u003cimg alt=\"date-fns\" title=\"date-fns\" src=\"https://raw.githubusercontent.com/date-fns/date-fns/master/docs/logotype.svg\" width=\"150\" /\u003e\n\ndate-fns provides the most comprehensive, yet simple and consistent toolset for manipulating JavaScript dates in a browser \u0026 Node.js\n\n👉 [Documentation](https://date-fns.org/)\n\n👉 [Blog](https://blog.date-fns.org/)\n\n\u003chr\u003e\n\nIt's like [Lodash](https://lodash.com) for dates\n\n- It has [**200+ functions** for all occasions](https://date-fns.org/docs/Getting-Started/).\n- **Modular**: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking.\n- **Native dates**: Uses existing native type. It doesn't extend core objects for safety's sake.\n- **Immutable \u0026 Pure**: Built using pure functions and always returns a new date instance.\n- **TypeScript**: The library is 100% TypeScript with brand-new handcrafted types.\n- **I18n**: Dozens of locales. Include only what you need.\n- [and many more benefits](https://date-fns.org/)\n\n```js\nimport { compareAsc, format } from \"date-fns\";\n\nformat(new Date(2014, 1, 11), \"yyyy-MM-dd\");\n//=\u003e '2014-02-11'\n\nconst dates = [\n  new Date(1995, 6, 2),\n  new Date(1987, 1, 11),\n  new Date(1989, 6, 10),\n];\ndates.sort(compareAsc);\n//=\u003e [\n//   Wed Feb 11 1987 00:00:00,\n//   Mon Jul 10 1989 00:00:00,\n//   Sun Jul 02 1995 00:00:00\n// ]\n```\n\nThe library is available as an [npm package](https://www.npmjs.com/package/date-fns).\nTo install the package run:\n\n```bash\nnpm install date-fns --save\n```\n\n## Docs\n\n[See date-fns.org](https://date-fns.org/) for more details, API,\nand other docs.\n\n\u003cbr /\u003e\n\n## License\n\n[MIT © Sasha Koss](https://kossnocorp.mit-license.org/)\n","funding_links":["https://github.com/sponsors/kossnocorp","https://opencollective.com/date-fns"],"categories":["Packages","TypeScript","Plugins","HarmonyOS","Dates","开发资源","JavaScript","Repository","包","*.js","前端开发框架及项目","Date","Library","\u003e 10k ★","工具类","目录","工具","Date [🔝](#readme)","Utilities","Programming Languages","nodejs","Uncategorized","utilities","日期","Components \u0026\u0026 Librarys","4. 工具"],"sub_categories":["Date","Utilities","Windows Manager","Node","Date \u0026 Time","日期","Browser","其他_文本生成、文本对话","Runner","macros","日期处理","Syntax highlighting","JavaScript","Uncategorized","运行器","4.1 Util"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdate-fns%2Fdate-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdate-fns%2Fdate-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdate-fns%2Fdate-fns/lists"}