Time4J-Tutorial: Overview

Table Of Contents

Download and installation
Introduction to basic types
Element centric approach
Conversions between basic types
Integration with Java
The format and parse engine
How to handle a duration?
Design and role of the class ZonalDateTime
Working with time scales
Internationalization
Appendix: Feature comparison

Module structure

Time4J is organized in modules. The base-module is mandatory and contains following public (exported) packages:

There are some extra modules which are optional and require the base-module. The term "optional" means that you can leave out these modules from classpath or module path if not used in your app.

The sqlxml-module offers adapters for JDBC and XML:

The tzdata-module represents an independent timezone repository based on the TZDB of IANA and overrides the timezone data of the JDK (if the JDK-version is not newer).

The ui-module contains a graphical calendar chooser for JavaFX.

The tool-module consists of the package net.time4j.tool and is only relevant for the creation and compilation of resources for Time4J. It also contains the timezone repository compiler. Standard applications have no need for this module in most cases.