| 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 |
CalendarUnit
Represents the most common time units related to a standard
ISO-8601-calendar.
|
class |
Weekcycle
Represents a special unit for week-based years which are described by ISO-8601 and
follow the week cycle from Monday to Sunday.
|
| Modifier and Type | Method and Description |
|---|---|
IsoDateUnit |
CalendarUnit.atEndOfMonth()
Defines a variation of this unit which always sets the resulting
date in additions and subtractions to the end of month even if there
is no day overflow.
|
IsoDateUnit |
CalendarUnit.keepingEndOfMonth()
Defines a variation of this unit which sets the resulting date
in additions and subtractions to the end of month if and only if the original
date is the last day of month.
|
IsoDateUnit |
CalendarUnit.nextValidDate()
Defines a variation of this unit which resolves invalid intermediate
dates in additions and subtractions to the first valid date after
(the first day of following month).
|
IsoDateUnit |
CalendarUnit.unlessInvalid()
Defines a variation of this unit which handles invalid
intermediate dates in additions and subtractions by throwing
a
ChronoException. |
static IsoDateUnit |
CalendarUnit.weekBasedYears()
Defines a special calendar unit for week-based years which are
not bound to the calendar year but to the week cycle of a year
preserving the day of week and (if possible) the week of year.
|
IsoDateUnit |
CalendarUnit.withCarryOver()
Defines a variation of this unit which resolves invalid intermediate
dates in additions and subtractions by transferring any day overflow
to the following month.
|
IsoDateUnit |
CalendarUnit.withJodaMetric()
Defines a variation of this unit which simulates the behaviour of Joda-Time.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeAxis<IsoDateUnit,PlainDate> |
PlainDate.axis()
Provides a static access to the associated chronology on base of
epoch days which contains the chronological rules.
|
static TimeMetric<IsoDateUnit,Duration<IsoDateUnit>> |
Duration.inWeekBasedUnits()
Constructs a metric in week-based years, weeks and days.
|
static TimeMetric<IsoDateUnit,Duration<IsoDateUnit>> |
Duration.inWeekBasedUnits()
Constructs a metric in week-based years, weeks and days.
|
static Duration<IsoDateUnit> |
Duration.parseWeekBasedPeriod(String period)
Parses a canonical representation with only week-based units (Y, W and D) to a
calendrical duration where years are interpreted as week-based years.
|
Copyright © 2014–2017. All rights reserved.