All Projects → JodaOrg → Joda Time

JodaOrg / Joda Time

Licence: apache-2.0
Joda-Time is the widely used replacement for the Java date and time classes prior to Java SE 8.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Joda Time

joda-time-jsptags
JSP tag support for Joda-Time.
Stars: ✭ 20 (-99.58%)
Mutual labels:  joda, joda-time
joda-collect
Java library providing additional collection interfaces and implementations built on top of Guava
Stars: ✭ 26 (-99.45%)
Mutual labels:  joda
Date Time
Date and time library for PHP
Stars: ✭ 128 (-97.3%)
Mutual labels:  date-time
chronic
A natural language date-time parser for the command-line
Stars: ✭ 13 (-99.73%)
Mutual labels:  date-time
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (-58.13%)
Mutual labels:  date-time
Pytime
PyTime is an easy-use Python module which aims to operate date/time/datetime by string.
Stars: ✭ 140 (-97.04%)
Mutual labels:  date-time
Bottomsheetpickers
Third-party date and time pickers for Android.
Stars: ✭ 1,099 (-76.79%)
Mutual labels:  date-time
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (-90.94%)
Mutual labels:  date-time
material-ui-datetimepicker
[UNMAINTAINED] Wrapper for Material UI Date and Time picker components
Stars: ✭ 32 (-99.32%)
Mutual labels:  date-time
Socket-Programming-With-C
✉️ Learn Network Protocol and Network Programming
Stars: ✭ 147 (-96.9%)
Mutual labels:  date-time
timechange
Efficient Updating of Date-Times
Stars: ✭ 25 (-99.47%)
Mutual labels:  date-time
Eztime
ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
Stars: ✭ 173 (-96.35%)
Mutual labels:  date-time
clojure.joda-time
An idiomatic Clojure wrapper for Joda-Time
Stars: ✭ 28 (-99.41%)
Mutual labels:  joda-time
core
The XP Framework is an all-purpose, object oriented PHP framework.
Stars: ✭ 13 (-99.73%)
Mutual labels:  date-time
Android-Starter-Kit
This is up-to-date android studio project for native android application, that is using modern tools and libraries.
Stars: ✭ 16 (-99.66%)
Mutual labels:  joda-time
Moment Range
Fancy date ranges for Moment.js
Stars: ✭ 1,639 (-65.39%)
Mutual labels:  date-time
vscode-insertdatestring
An extension for Visual Studio Code that provides a configurable command for inserting the current date and time
Stars: ✭ 58 (-98.78%)
Mutual labels:  date-time
Ciso8601
Fast ISO8601 date time parser for Python written in C
Stars: ✭ 455 (-90.39%)
Mutual labels:  date-time
jest-mock-date-examples
Different approaches to mocking the Date in Jest tests
Stars: ✭ 22 (-99.54%)
Mutual labels:  date-time
ts-business-time
Business time / market hours logic for TypeScript
Stars: ✭ 18 (-99.62%)
Mutual labels:  date-time

Joda-Time

Joda-Time provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing a simple API. The 'default' calendar is the ISO8601 standard which is used by XML. The Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also included. Supporting classes include time zone, duration, format and parsing.

Joda-time is no longer in active development except to keep timezone data up to date. From Java SE 8 onwards, users are asked to migrate to java.time (JSR-310) - a core part of the JDK which replaces this project. For Android users, java.time is added in API 26+. Projects needing to support lower API levels can use the ThreeTenABP library.

As a flavour of Joda-Time, here's some example code:

public boolean isAfterPayDay(DateTime datetime) {
  if (datetime.getMonthOfYear() == 2) {   // February is month 2!!
    return datetime.getDayOfMonth() > 26;
  }
  return datetime.getDayOfMonth() > 28;
}

public Days daysToNewYear(LocalDate fromDate) {
  LocalDate newYear = fromDate.plusYears(1).withDayOfYear(1);
  return Days.daysBetween(fromDate, newYear);
}

public boolean isRentalOverdue(DateTime datetimeRented) {
  Period rentalPeriod = new Period().withDays(2).withHours(12);
  return datetimeRented.plus(rentalPeriod).isBeforeNow();
}

public String getBirthMonthText(LocalDate dateOfBirth) {
  return dateOfBirth.monthOfYear().getAsText(Locale.ENGLISH);
}

Joda-Time is licensed under the business-friendly Apache 2.0 licence.

Documentation

Various documentation is available:

Releases

Release 2.10.13 is the current latest release. This release is considered stable and worthy of the 2.x tag. It depends on JDK 1.5 or later.

Available in the Maven Central repository

Maven configuration:

<dependency>
  <groupId>joda-time</groupId>
  <artifactId>joda-time</artifactId>
  <version>2.10.13</version>
</dependency>

Gradle configuration:

compile 'joda-time:joda-time:2.10.13'

Tidelift dependency check

Related projects

Related projects at GitHub:

Other related projects:

For enterprise

Available as part of the Tidelift Subscription.

Joda 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.

If you want the flexibility of open source and the confidence of commercial-grade software, this is for you.

Learn more

Support

Please use Stack Overflow for general usage questions. GitHub issues and pull requests should be used when you want to help advance the project.

Any donations to support the project are accepted via OpenCollective.

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Release process

  • Update version (pom.xml, README.md, index.md, MANIFEST.MF, changes.xml)
  • Commit and push
  • Ensure on Java SE 8
  • mvn clean deploy -Doss.repo -Dgpg.passphrase=""
  • Website will be built and released by GitHub Actions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].