This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Joda-Time 0.98 released

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Joda-Time project provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing simple API. The 'default' calendar is the ISO8601 standard which is used by XML and suitable for most business uses. The Gregorian, Julian, Buddhist and Coptic systems are also included, and we welcome further additions.

The main API includes
- DateTime - a full date and time
- DateMidnight - date with time fixed at midnight
- YearMonthDay - a date without time zone
- TimeOfDay - a time without time zone
- Duration - length of time in milliseconds
- Period - length of time in fields (eg. 6 months and 2 days)
- Interval - an interval between two datetimes
Supporting classes include time zone, duration, format and parsing.

The decision to create a cleanroom date implementation to replace Java's is based on the flaws in the JDK code. Date should have been immutable, like String, instead it is mutable and has many deprecated methods. Calendar makes accessing 'normal' dates difficult, due to the lack of simple methods. It also has some strange performance characteristics as it recalculates fields at unexpected moments.

This release is heavily tested, so why not give it a try! Its a whole lot better than the JDK classes ;-)
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recommended.

Guy
 
I like tacos! And this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic