Joda-Time 1.6 released

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Joda-Time 1.6 released

jodastephen
The new release is out.
It has the latest 2008i time zone file included with the updates for
Argentina and Brazil amongst others.

Stephen


Enhancements since 1.5
----------------------
- Add static factory methods to Duration [1909376]
   Duration now has four factory methods, standardDays(), standardHours(),
   standardMinutes() and standardSeconds(). These create durations of the
   length normally associated with a day/hour/minute/second

- Added Duration.getStandardSeconds() and Duration.toStandardSeconds()
   These convert a duration in milliseconds to a number of seconds.

- Added OSGi bundle information [1889787]
   Joda-Time should be usable directly as an OSGi bundle

- Added stable Chronology hash code implementations [2018795]
   The hash codes of each Chronology implementation is now stable.
   This should aid large scale caching/distribution tools.

- Added DateTimeZone.isLocalDateTimeGap
   Returns true/false depending on whether the time is in a time-zone gap


Compatibility with 1.5
----------------------
Binary compatible - Yes

Source compatible - Yes

Serialization compatible - Yes

Data compatible - Yes, except
   - DateTimeZone data updated to version 2008i

Semantic compatible - Yes


Deprecations since 1.5
----------------------


Bug fixes since 1.5
-------------------
- ISODateTimeFormat millisecond parsing broken
   Millisecond parsing would parse 12:00:00.4 as 4 milliseconds rather
   than 400 milliseconds

- ISODateTimeFormat basic field parsing too lenient
   The basic parsers in ISODateTimeFormat were too lenient
   They have been changed to only accept the correct number of digits as
   per the ISO-8601 standard. The non basic parsers are unaffected

- DateTimeFormat.forFields(List) method can't handle immutable [1877843]
   Fix so that the method does not throw an exception when an unmodifiable
   list is passed in

- Fixed offset time zones calculated incorrect periods
   ZonedChronology.ZonedDuration.isPrecise() did not take into account
   the decorated isPrecise() value. This meant that date fields for fixed
   offset time zones were always considered precise. The result was periods
   containing months and years when they should not have done.

- ZonedChronology (regression from 1.4) [1887104]
   Fix to roundFloor/roundCeiling
   Bug affected DST cutover in Autumn for time fields (not date fields)

- Clarify Javadoc time zone formats
   Time zone formats were incorrectly documented as 'Z' instead of 'ZZ'
   Javadoc only change

- Period formatting [2025928]
   Formatting option printZeroRarelyFirst() did not work unless years
   field was included.

- DateTimeZone (regression from 1.4) [fix also available in v1.5.2]
   Fix getOffsetFromLocal DST gap adjustment
   Bug affected parsing of DST cutover in Autumn

- Parsing (regression from 1.4) [1839440] [fix also available in v1.5.1]
   Support parsing all upper-case and all lower-case text

- Javadoc clarity enhancements [fix also available in v1.5.1]
   - Constants in Years/Months/Weeks/Days/Hours/Minutes/Seconds etc.
   - Period/Interval Object constructors

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Joda-interest mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/joda-interest
Loading...