@Deprecated public class JodaTimeContext extends Object
A null
property value indicate the user has not specified a setting.
JodaTimeContextHolder
Constructor and Description |
---|
JodaTimeContext()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Chronology |
getChronology()
Deprecated.
Return the user's chronology (calendar system), if any.
|
DateTimeFormatter |
getFormatter(DateTimeFormatter formatter)
Deprecated.
Get the DateTimeFormatter with the this context's settings
applied to the base
formatter . |
DateTimeZone |
getTimeZone()
Deprecated.
Return the user's time zone, if any.
|
void |
setChronology(Chronology chronology)
Deprecated.
Set the user's chronology (calendar system).
|
void |
setTimeZone(DateTimeZone timeZone)
Deprecated.
Set the user's time zone.
|
public void setChronology(@Nullable Chronology chronology)
@Nullable public Chronology getChronology()
public void setTimeZone(@Nullable DateTimeZone timeZone)
Alternatively, set a TimeZoneAwareLocaleContext
on
LocaleContextHolder
. This context class will fall back to
checking the locale context if no setting has been provided here.
@Nullable public DateTimeZone getTimeZone()
public DateTimeFormatter getFormatter(DateTimeFormatter formatter)
formatter
.formatter
- the base formatter that establishes default
formatting rules, generally context-independent