Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MenoData authored Sep 13, 2020
1 parent 9a67730 commit 31562ec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Although the new JSR-310 (built in Java 8) is certainly a very useful library fo
Current state and introduction:
-------------------------------

On 2020-05-31, the version v5.6 of Time4J has been finished and released. It requires at least Java-8. The older version lines v3.x and v4.x have reached end-of-life with the latest versions v3.50 and v4.38 where v3.x is based on Java 6+7. The previous version lines v1.x and v2.x are no longer recommended (due to several backward incompatibilities) and have reached end-of-life, too. Time4J is organized in modules. The module **time4j-base** is always necessary. Other modules are optional and include:
On 2020-09-13, the version v5.7 of Time4J has been finished and released. It requires at least Java-8. The older version lines v3.x and v4.x have reached end-of-life with the latest versions v3.50 and v4.38 where v3.x is based on Java 6+7. The previous version lines v1.x and v2.x are no longer recommended (due to several backward incompatibilities) and have reached end-of-life, too. Time4J is organized in modules. The module **time4j-base** is always necessary. Other modules are optional and include:

- **time4j-sqlxml** contains a simple adapter for the support of SQL-databases.
- **time4j-tzdata** encapsulates the time zone repository (independent github-project starting with version 5.0-2018f)
Expand Down Expand Up @@ -123,7 +123,7 @@ d) **Temporal arithmetic**: Another way of manipulation is date/time-arithmetic

e) **Global versus local**: Time4J rejects the design idea of JSR-310 to separate between "machine time" and "human time". This is considered as artificial. So all four basic types offer both aspects in one. For example a calendar date is simultaneously a human time consisting of several meaningful elements like year, month etc. and also a kind of machine or technical time counter because you can define a single incrementing number represented by julian days. In a similar way a UTC-moment has both a technical counter (the number of SI-seconds since UTC-epoch) AND a human representation visible in its canonical output produced by `toString()`-method (example: 2014-04-21T19:45:30Z). However, Time4J emphasizes the difference between local and global types. Conversion between these types always require a timezone or an offset.

f) **Internationalization**: Time4J defines its own i18n-resources for many languages (**95 languages in version 5.6**) in order to defend its i18n-behaviour against poor or insufficient platform resources (which only serve as fallback). Especially localized formatting of durations is not a supported feature on any platform, so Time4J fills an important gap.
f) **Internationalization**: Time4J defines its own i18n-resources for many languages (**95 languages in version 5.7**) in order to defend its i18n-behaviour against poor or insufficient platform resources (which only serve as fallback). Especially localized formatting of durations is not a supported feature on any platform, so Time4J fills an important gap.

g) **Powerful format engine**: The built-in format engine located in format/expert-package offers overwhelmingly many features, general interfaces for customization and outstanding parsing performance (better than in Joda-Time or JSR-310).

Expand All @@ -138,7 +138,7 @@ Support for alternative calendars:
- French revolutionary
- Hebrew (including support for Hebrew time)
- Hijri (Islamic) with a lot of customizable variants
- Hindu (old solar + old lunar)
- Hindu (based on algorithms by Dershowitz/Reingold)
- Historic christian (includes british, byzantine, swedish etc.)
- Indian national (Saka)
- Japanese (including lunisolar part since AD 701)
Expand All @@ -165,12 +165,12 @@ Add these dependencies to your pom-file (typical setup):
<dependency>
<groupId>net.time4j</groupId>
<artifactId>time4j-base</artifactId>
<version>5.6</version>
<version>5.7</version>
</dependency>
<dependency>
<groupId>net.time4j</groupId>
<artifactId>time4j-sqlxml</artifactId>
<version>5.6</version>
<version>5.7</version>
</dependency>
<dependency>
<groupId>net.time4j</groupId>
Expand All @@ -185,7 +185,8 @@ Then make sure that the very first usage of Time4J-code starts with the followin
TZDATA.init();
```

The last step is only necessary for OSGi or module path environments (Java 9+) provided that the timezone repository should be used instead of platform zone rules. This special initialization can be left out if Time4J is run on the traditional classpath (for example Java 8).
The last step is only necessary for module path environments (Java 9+) provided that the timezone repository should be used instead of platform zone rules. This special initialization can be left out if Time4J is run on the traditional classpath (for example Java 8). Users are also asked to set following system property
in OSGi-environments: &quot;-Dnet.time4j.base.useClassloaderOnly=true&quot;.

Please also read the installation notes on Time4J-tutorial.

Expand Down

0 comments on commit 31562ec

Please sign in to comment.