| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Class and Description |
|---|---|
class |
PlainDate
Represents a plain calendar date in conformance to ISO-8601-standard.
|
class |
PlainTimestamp
Represents a plain composition of calendar date and wall time as defined
in ISO-8601, but without any timezone.
|
| Modifier and Type | Field and Description |
|---|---|
static Normalizer<CalendarUnit> |
Duration.STD_CALENDAR_PERIOD
Normalizes the calendrical items of a duration on the base
1 year = 12 months - without converting the days to months. |
static Normalizer<ClockUnit> |
Duration.STD_CLOCK_PERIOD
Normalizes the wall time items of a duration on the base
1 day = 24 hours und 1 hour = 60 minutes and
1 minute = 60 seconds. |
static Normalizer<IsoUnit> |
Duration.STD_PERIOD
Normalizes the duration items on the base of
1 year = 12 months and 1 day = 24 hours and
1 hour = 60 minutes and 1 minute = 60 seconds -
without converting days to months. |
| Modifier and Type | Method and Description |
|---|---|
static Normalizer<IsoUnit> |
Duration.approximateHours(int steps)
Yields an approximate normalizer in steps of hours which
finally uses years, months, days and rounded hours.
|
static Normalizer<IsoUnit> |
Duration.approximateMinutes(int steps)
Yields an approximate normalizer in steps of minutes which
finally uses years, months, days, hours and rounded minutes.
|
static Normalizer<IsoUnit> |
Duration.approximateSeconds(int steps)
Yields an approximate normalizer in steps of seconds which finally
uses years, months, days, hours, minutes and rounded seconds.
|
Normalizer<ClockUnit> |
ClockUnit.only()
Yields a normalizer which converts a given duration in another
duration with only this clock unit.
|
| Modifier and Type | Method and Description |
|---|---|
Duration<U> |
Duration.with(Normalizer<U> normalizer)
Normalizes this duration by given normalizer.
|
Copyright © 2014. All rights reserved.