{"id":13511795,"url":"https://github.com/JodaOrg/joda-time","last_synced_at":"2025-03-30T21:30:53.483Z","repository":{"id":1502214,"uuid":"1756350","full_name":"JodaOrg/joda-time","owner":"JodaOrg","description":"Joda-Time is the widely used replacement for the Java date and time classes prior to Java SE 8.","archived":false,"fork":false,"pushed_at":"2024-09-17T06:40:22.000Z","size":12609,"stargazers_count":4980,"open_issues_count":40,"forks_count":981,"subscribers_count":215,"default_branch":"main","last_synced_at":"2024-10-29T19:14:16.678Z","etag":null,"topics":["date-time","java","joda","joda-time"],"latest_commit_sha":null,"homepage":"http://www.joda.org/joda-time/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JodaOrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jodastephen","open_collective":"joda","tidelift":"maven/joda-time:joda-time"}},"created_at":"2011-05-16T16:49:57.000Z","updated_at":"2024-10-26T09:24:28.000Z","dependencies_parsed_at":"2023-12-21T22:03:52.040Z","dependency_job_id":"6d20b62d-44f6-4d58-8f4a-b76f86b4e61a","html_url":"https://github.com/JodaOrg/joda-time","commit_stats":{"total_commits":2196,"total_committers":111,"mean_commits":"19.783783783783782","dds":0.2809653916211293,"last_synced_commit":"2ce9b4cdc207130a186dafbb8456cd0b0cfd9e4c"},"previous_names":[],"tags_count":91,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JodaOrg%2Fjoda-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JodaOrg","download_url":"https://codeload.github.com/JodaOrg/joda-time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245316514,"owners_count":20595454,"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-time","java","joda","joda-time"],"created_at":"2024-08-01T03:01:11.044Z","updated_at":"2025-03-30T21:30:53.476Z","avatar_url":"https://github.com/JodaOrg.png","language":"Java","funding_links":["https://github.com/sponsors/jodastephen","https://opencollective.com/joda","https://tidelift.com/funding/github/maven/joda-time:joda-time","https://tidelift.com/badges/github/JodaOrg/joda-time","https://tidelift.com/subscription/pkg/maven-joda-time-joda-time?utm_source=maven-joda-time-joda-time\u0026utm_medium=github","https://tidelift.com/security"],"categories":["Java","dependency list","I. Development","1. Important library"],"sub_categories":["6. Useful libraries"],"readme":"Joda-Time\n---------\n\nJoda-Time provides a quality replacement for the Java date and time classes.\nThe design allows for multiple calendar systems, while still providing a simple API.\nThe 'default' calendar is the ISO8601 standard which is used by XML.\nThe Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also included.\nSupporting classes include time zone, duration, format and parsing. \n\n**Joda-time is no longer in active development except to keep timezone data up to date.**\nFrom Java SE 8 onwards, users are asked to migrate to `java.time` (JSR-310) - a core part of the JDK which replaces this project.\nFor Android users, `java.time` is [added in API 26+](https://developer.android.com/reference/java/time/package-summary).\nProjects needing to support lower API levels can use [the ThreeTenABP library](https://github.com/JakeWharton/ThreeTenABP).\n\nAs a flavour of Joda-Time, here's some example code:\n\n```java\npublic boolean isAfterPayDay(DateTime datetime) {\n  if (datetime.getMonthOfYear() == 2) {   // February is month 2!!\n    return datetime.getDayOfMonth() \u003e 26;\n  }\n  return datetime.getDayOfMonth() \u003e 28;\n}\n\npublic Days daysToNewYear(LocalDate fromDate) {\n  LocalDate newYear = fromDate.plusYears(1).withDayOfYear(1);\n  return Days.daysBetween(fromDate, newYear);\n}\n\npublic boolean isRentalOverdue(DateTime datetimeRented) {\n  Period rentalPeriod = new Period().withDays(2).withHours(12);\n  return datetimeRented.plus(rentalPeriod).isBeforeNow();\n}\n\npublic String getBirthMonthText(LocalDate dateOfBirth) {\n  return dateOfBirth.monthOfYear().getAsText(Locale.ENGLISH);\n}\n```\n\nJoda-Time is licensed under the business-friendly [Apache 2.0 licence](https://www.joda.org/joda-time/licenses.html).\n\n![Tidelift dependency check](https://tidelift.com/badges/github/JodaOrg/joda-time)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6310/badge)](https://bestpractices.coreinfrastructure.org/projects/6310)\n\n\n### Documentation\nVarious documentation is available:\n\n* The [home page](https://www.joda.org/joda-time/)\n* Two user guides - [quick](https://www.joda.org/joda-time/quickstart.html) and [full](https://www.joda.org/joda-time/userguide.html)\n* The [Javadoc](https://www.joda.org/joda-time/apidocs/index.html)\n* The [FAQ](https://www.joda.org/joda-time/faq.html) list\n* Information on [downloading and installing](https://www.joda.org/joda-time/installation.html) Joda-Time including release notes\n\n\n### Releases\n[Release 2.13.1](https://www.joda.org/joda-time/download.html) is the current latest release.\nThis release is considered stable and worthy of the 2.x tag.\nIt depends on JDK 1.5 or later.\n\nAvailable in the [Maven Central repository](https://search.maven.org/search?q=g:joda-time%20AND%20a:joda-time\u0026core=gav)\n\n**Maven configuration:**\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ejoda-time\u003c/groupId\u003e\n  \u003cartifactId\u003ejoda-time\u003c/artifactId\u003e\n  \u003cversion\u003e2.13.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**Gradle configuration:**\n```groovy\ncompile 'joda-time:joda-time:2.13.1'\n```\n\n\n### Related projects\nRelated projects at GitHub:\n- https://github.com/JodaOrg/joda-time-hibernate\n- https://github.com/JodaOrg/joda-time-jsptags\n- https://github.com/JodaOrg/joda-time-i18n\n\nOther related projects:\n- https://www.joda.org/joda-time/related.html\n\n\n### For enterprise\nAvailable as part of the Tidelift Subscription.\n\nJoda and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.\n\nIf you want the flexibility of open source and the confidence of commercial-grade software, this is for you.\n\n[Learn more](https://tidelift.com/subscription/pkg/maven-joda-time-joda-time?utm_source=maven-joda-time-joda-time\u0026utm_medium=github)\n\n\n### Support\nPlease use [Stack Overflow](https://stackoverflow.com/questions/tagged/jodatime) for general usage questions.\nGitHub [issues](https://github.com/JodaOrg/joda-time/issues) and [pull requests](https://github.com/JodaOrg/joda-time/pulls)\nshould be used when you want to help advance the project.\n\nAny donations to support the project are accepted via [OpenCollective](https://opencollective.com/joda).\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).\nTidelift will coordinate the fix and disclosure.\n\n\n### Development and Contributions\nJoda-Time is developed using standard [GitHub tools](https://github.com/JodaOrg/joda-time).\nA [checkstyle](https://checkstyle.sourceforge.io/) file is available, and PRs must comply with it.\nThe project can be built using [Apache Maven](https://maven.apache.org/), such as \u003ccode\u003emvn clean install\u003c/code\u003e.\nContinuous Integration takes place using [GitHub Actions](https://github.com/JodaOrg/joda-time/actions).\nUnits tests are written in [JUnit](https://junit.org/) and run as part of the build and continuous integration.\nChanges via PR must include appropiate test coverage.\n\nNote that Joda-Time is considered to be a largely “finished” project. No major enhancements are planned. If using Java SE 8, please migrate to java.time (JSR-310).\n\n\n### Release process\n\n* Update version (pom.xml, README.md, index.md, MANIFEST.MF, changes.xml)\n* Commit and push\n* Ensure on Java SE 8\n* `mvn clean deploy -Doss.repo -Dgpg.passphrase=\"\"`\n* Website will be built and released by GitHub Actions\n\nIf the GitHub stage fails, use `mvn clean deploy -Doss.repo -DskipRemoteStaging=true` to re-run\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJodaOrg%2Fjoda-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJodaOrg%2Fjoda-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJodaOrg%2Fjoda-time/lists"}