{"id":15008469,"url":"https://github.com/jama5262/jiffy","last_synced_at":"2025-05-14T15:06:54.475Z","repository":{"id":35170889,"uuid":"214412420","full_name":"jama5262/jiffy","owner":"jama5262","description":"Jiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates","archived":false,"fork":false,"pushed_at":"2025-04-02T10:17:18.000Z","size":530,"stargazers_count":610,"open_issues_count":8,"forks_count":129,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T20:43:41.110Z","etag":null,"topics":["dart","dartlang","date","dateformat","datetime","flutter","flutter-package","time"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/jiffy","language":"Dart","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/jama5262.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-11T10:52:29.000Z","updated_at":"2025-04-02T10:18:38.000Z","dependencies_parsed_at":"2024-06-18T12:35:51.274Z","dependency_job_id":"fd200d91-56e6-4a26-857c-e06a5fb36854","html_url":"https://github.com/jama5262/jiffy","commit_stats":{"total_commits":300,"total_committers":25,"mean_commits":12.0,"dds":"0.22666666666666668","last_synced_commit":"8a947445d202aab2692e2841fc599144f5c09b18"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Fjiffy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Fjiffy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Fjiffy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Fjiffy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jama5262","download_url":"https://codeload.github.com/jama5262/jiffy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169227,"owners_count":22026209,"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":["dart","dartlang","date","dateformat","datetime","flutter","flutter-package","time"],"created_at":"2024-09-24T19:18:56.792Z","updated_at":"2025-05-14T15:06:54.417Z","avatar_url":"https://github.com/jama5262.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jiffy\n\n[![Continuous Integration](https://github.com/jama5262/jiffy/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jama5262/jiffy/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/jama5262/jiffy/branch/master/graph/badge.svg?token=Z2EGVUGWTE)](https://codecov.io/gh/jama5262/jiffy)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Pub Version](https://img.shields.io/badge/pub.dev-v6.4.3-blue)](https://pub.dev/packages/jiffy/versions/6.4.3)\n![Platform](https://img.shields.io/badge/platform-flutter%7Cweb%7Cdart%20vm-orange)\n\nJiffy is a Flutter (Android, IOS and Web) date time package for parsing, manipulating, querying and formatting dates and time\n\n### [Full Documentation](https://github.com/jama5262/jiffy/tree/v6.4.3/doc) | [API Reference](https://pub.dev/documentation/jiffy/latest/jiffy/Jiffy-class.html) | [Installation](https://pub.dev/packages/jiffy/install) | [ChangeLog](https://pub.dev/packages/jiffy/changelog) | [Examples](https://pub.dev/packages/jiffy/example)\n\n### [Discussions](https://github.com/jama5262/jiffy/discussions)\n\n# Usage\n\n## Format Dates\n```dart\nJiffy.parse('2021/01/19').format(pattern: 'MMMM do yyyy, h:mm:ss a'); // January 1st 2021, 12:00:00 AM\nJiffy.now().format(pattern: 'EEEE'); // Tuesday\nJiffy.now().format(pattern: 'MMM do yy'); // Mar 2nd 21\nJiffy.now().format(pattern: 'yyyy [escaped] yyyy'); // 2021 escaped 2021\nJiffy.now().format(); // 2021-03-02T15:18:29.922343\n\nJiffy.parseFromList([2020, 10, 19]).yMMMMd; // January 19, 2021\n\nJiffy.parseFromMap({\n  Unit.year: 2020,\n  Unit.month: 10,\n  Unit.day: 19,\n  Unit.hour: 19\n}).yMMMMEEEEdjm; // Monday, October 19, 2020 7:14 PM\n\n//  You can also use pre-set formats\nJiffy.parse('19, Jan 2021', pattern: 'dd, MMM yyyy').yMMMMd; // January 19, 2021\nJiffy.now().yMMMMEEEEdjm; // Tuesday, March 2, 2021 3:20 PM\n```\n\n## Relative Time\n```dart\n// From X\nJiffy.parse('1997/09/23').from(Jiffy.parse('2002/10/26')); // 5 years ago\n// From Now\nJiffy.parse('1997/09/23').fromNow(); // 25 years ago\n\n// To X\nJiffy.parse('1997/09/23').to(Jiffy.parse('2002/10/26')); // in 5 years\n// To Now\nJiffy.parse('1997/09/23').toNow(); // in 25 years\n```\n\n## Manipulation\n\n```dart\nvar jiffy = Jiffy.now().add(days: 1);\njiffy.yMMMMd; // March 3, 2021\n\nJiffy.now().subtract(days: 1).yMMMMd; // March 1, 2021\n\nJiffy.now()\n  .add(hours: 3, days: 1)\n  .subtract(minutes: 30, months: 1)\n  .yMMMMEEEEdjm; // Wednesday, February 3, 2021 6:07 PM\n\nJiffy.parse('1997/09/23')\n    .startOf(Unit.year)\n    .yMMMMEEEEd; // Wednesday, January 1, 1997\n\nJiffy.parse('1997/09/23')\n    .endOf(Unit.month)\n    .yMMMMEEEEd; // Tuesday, September 30, 1997\n```\n\n## Querying\n\n```dart\nJiffy.parse('1997/9/23').isBefore(Jiffy.parse('1997/9/24')); // true\n\nJiffy.parse('1997/9/23').isAfter(Jiffy.parse('1997/9/20')); // true\n\nJiffy.parse('1997/9/23').isSame(Jiffy.parse('1997/9/23')); // true\n\nJiffy.parse('1997/9/23')\n  .isBetween(Jiffy.parse('1997/9/20'), Jiffy.parse('1997/9/24')); // true\n```\n\n## Locale Support\n```dart\n// Get current locale code, by default it is en_us\nJiffy.now().localeCode; // en_US\n\n// Setting your preferred locale\nawait Jiffy.setLocale('fr_ca');\nJiffy.now().yMMMMEEEEdjm; // dimanche 26 février 2023 12 h 03\n\nawait Jiffy.setLocale('ja');\nJiffy.now().yMMMMEEEEdjm; // 2023年2月26日日曜日 12:02\n\nawait Jiffy.setLocale('zh_cn');\nJiffy.now().yMMMMEEEEdjm; // 2023年2月26日星期日 下午12:03\n```\n\n## Contributing\n\nFor contribution guidelines, see [CONTRIBUTING](./CONTRIBUTING.md).\n\n## Support\n\nReach out to me at one of the following places!\n\n- Email me at [jama3137@gmail.com](mailto:jama3137@gmail.com)\n- LinkedIn [Jama Mohamed](https://www.linkedin.com/in/jama-mohamed/)\n\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 Jama Mohamed\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjama5262%2Fjiffy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjama5262%2Fjiffy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjama5262%2Fjiffy/lists"}