Uses of Interface
net.time4j.engine.Normalizer
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.-
Uses of Normalizer in net.time4j
Modifier and TypeClassDescriptionclass
Represents a plain calendar date in conformance to ISO-8601-standard using the gregorian calendar rules for all times.class
Represents a plain composition of calendar date and wall time as defined in ISO-8601, but without any timezone.Modifier and TypeFieldDescriptionstatic Normalizer<CalendarUnit>
Duration.STD_CALENDAR_PERIOD
Normalizes the calendrical items of a duration on the base1 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 base1 day = 24 hours
und1 hour = 60 minutes
and1 minute = 60 seconds
.static Normalizer<IsoUnit>
Duration.STD_PERIOD
Normalizes the duration items on the base of1 year = 12 months
and1 day = 24 hours
and1 hour = 60 minutes
and1 minute = 60 seconds
- without converting days to months.Modifier and TypeMethodDescriptionstatic 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.approximateMaxUnitOnly()
Creates a normalizer which yields an approximate duration based on the maximum relevant unit of the original duration (but not smaller than seconds).static Normalizer<IsoUnit>
Duration.approximateMaxUnitOrWeeks()
LikeapproximateMaxUnitOnly()
but can create week-based durations if the count of days is bigger than6
.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.ClockUnit.only()
Yields a normalizer which converts a given duration in another duration with only this clock unit.ClockUnit.rounded()
Yields a normalizer which converts a given duration in another normalized duration with smaller units truncated and this unit rounded.ClockUnit.truncated()
Yields a normalizer which converts a given duration in another duration with smaller units truncated.Modifier and TypeMethodDescriptionDuration.with(Normalizer<U> normalizer)
Normalizes this duration by given normalizer.