Skip to content

Releases: ethlo/itu

v1.7.2

27 Mar 10:45
48576b9
Compare
Choose a tag to compare

Just added the license to the pom.xml.

v1.7.1

27 Mar 08:53
Compare
Choose a tag to compare

Fix #11

v1.7.0

10 Mar 09:07
Compare
Choose a tag to compare
  • Added support for keeping the number of significant fraction digits in the second.
  • Added toString methods to DateTime for formatting.
  • Added support for formatting date-times with other time-offsets than UTC.
  • Vastly improved JavaDoc.

v1.6.1

09 Mar 10:29
Compare
Choose a tag to compare

New helper methods were added to deal with different granularity.

Validate to different required granularity:

ITU.isValid("2017-12-06", TemporalType.LOCAL_DATE_TIME);

Allowing handling different levels of granularity:

return ITU.parse("2017-12-06", new TemporalHandler<>()
{
    @Override
    public OffsetDateTime handle(final LocalDate localDate)
    {
        return localDate.atTime(OffsetTime.of(LocalTime.of(0, 0), ZoneOffset.UTC));
    }

    @Override
    public OffsetDateTime handle(final OffsetDateTime offsetDateTime)
    {
        return offsetDateTime;
    }
});

v1.6.0

08 Mar 15:37
Compare
Choose a tag to compare
  • ITU.parseLenient(String) now returns a custom DateTime object, which can be transformed to OffsetDateTime, LocalDateTime, etc, depending on how granular the fields in the input.
  • Removed methods supporting the handling of java.util.Date.

v1.5.2

02 Mar 20:45
Compare
Choose a tag to compare
  • Performance optimizations, especially formatting performance nearly doubled.
  • Better error message for date-times with fractions, but missing time-zone.
  • More granular benchmark tests.

v1.5.1

28 Feb 09:16
Compare
Choose a tag to compare

ITU is now using a list of known leap-second dates in the past and keeps the current rule for date-times after the last known leap-second year/date. This will avoid breaking the parsing of valid leap second due to not having the very last updated list of leap-seconds. The LeapSecondException now has a new method to allow for checking if this is indeed a valid leap-second according to the list, via boolean isVerifiedValidLeapYearMonth().

v1.5.0

27 Feb 13:24
Compare
Choose a tag to compare
  • Massive performance improvement for formatting
  • NOTE: Breaking change where previous versions returned null for null/empty input when parsing. This now throws an exception in line with the java.time classes

v1.4.0

26 Feb 14:30
Compare
Choose a tag to compare
  • Upgrade test dependencies and restructure a few internals to be able to write more fine-grained tests
  • Rerun tests for performance documentation.

v1.3.0

27 Oct 10:46
4bfca0b
Compare
Choose a tag to compare

Fixes #6