Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic