Skip to content

Releases: ethlo/itu

v1.7.7

22 Jan 10:47
Compare
Choose a tag to compare

com.ethlo.time.DateTime now supports toInstant() with a best-effort approach, so it will parse according to RFC-3339, but it will not raise an error for missing granularity nor timezone information.

1.7.6

05 Jan 13:35
Compare
Choose a tag to compare

com.ethlo.time.DateTime now implements java.time.temporal.TemporalAccessor

v1.7.5

28 Dec 11:19
Compare
Choose a tag to compare
  • Releasing a minified version for scenarios where every KB counts. Use <classifier>small</classifier> to use it.
  • Even faster parsing performance. 1.7.5 is more than twice as fast as 1.7.0.
  • NOTE: Parsing to OffsetDateTime now emit error messages closer to parsing via java.time.

1.7.4

27 Dec 09:39
Compare
Choose a tag to compare

Parser performance and GC improvements.
JMH tests indicate about 40% faster parsing.

v1.7.3

27 Jun 14:29
Compare
Choose a tag to compare

Added OSGI support - thanks to @marcoSpoethAtYatta

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.