This project aims to provide a mostly complete pure Java java.util.TimeZone
.
- Only selected ids/TimeZones will appear in methods like
java.util.TimeZone#getAvailableIDs
andjava.util.TimeZone#getTimeZone
. - Localization data for
java.util.TimeZone#getDisplay
is only provided for selected locales, timezone ids at build time by an annotation processor. - Serialization is not supported, and all support classes and forms including magic methods such as
writeReplace
are removed.
A default java.util.TimeZone
is required and must appear within the j2cl-maven-plugin defines section.
<walkingkooka.j2cl.java.util.timezone.TimeZone.DEFAULT>Australia/Sydney</walkingkooka.j2cl.java.util.timezone.TimeZoneDEFAULT>
- See j2cl-java-util-locale-annotation-processor for more info about selecting which locales get bundled.
- See j2cl-java-util-TimeZone-annotation-processor for more info about selecting which timezones get bundled.
- See j2cl-locale for more info about logging.
java.util.TimeZone
- setId throws UnsupportedOperationException, timezones are immutable
java.util.SimpleTimeZone
- Class missing
The j2cl-maven-plugin
will shade the source during the transpile phase, so TimeZone
is available to the runtime as java.util.TimeZone
and something similar for SimpleTimeZone
.
Annotation processors from class path must be enabled as some tests test the output of generated classes.
The star/wildcard may need to be escaped with a backslash.