java.time (JSR-310) settings
such as the user's Chronology (calendar system) and time zone.
A null property value indicates the user has not specified a setting.
DateTimeContextHolder
| Modifier and Type | Field and Description |
|---|---|
| private Chronology | |
| private ZoneId |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Chronology | |
| public DateTimeFormatter | Returns: the contextual DateTimeFormatterthe base formatter that establishes default
formatting rules, generally context-independent formatter)Get the DateTimeFormatter with this context's settings applied to the
base |
| public ZoneId | |
| public void | |
| public void |
| chronology | back to summary |
|---|---|
| private Chronology chronology
| |
| timeZone | back to summary |
|---|---|
| private ZoneId timeZone
| |
| DateTimeContext | back to summary |
|---|---|
| public DateTimeContext() | |
| getChronology | back to summary |
|---|---|
| public Chronology getChronology() Return the user's chronology (calendar system), if any.
| |
| getFormatter | back to summary |
|---|---|
| public DateTimeFormatter getFormatter(DateTimeFormatter formatter) Get the DateTimeFormatter with this context's settings applied to the
base
| |
| getTimeZone | back to summary |
|---|---|
| public ZoneId getTimeZone() Return the user's time zone, if any.
| |
| setChronology | back to summary |
|---|---|
| public void setChronology(Chronology chronology) Set the user's chronology (calendar system). | |
| setTimeZone | back to summary |
|---|---|
| public void setTimeZone(ZoneId timeZone) Set the user's time zone. Alternatively, set a | |