public class JodaTimeContext extends Object
null
property value indicate the user has not specified a setting.JodaTimeContextHolder
Constructor and Description |
---|
JodaTimeContext() |
Modifier and Type | Method and Description |
---|---|
Chronology |
getChronology()
The user's chronology (calendar system).
|
DateTimeFormatter |
getFormatter(DateTimeFormatter formatter)
Gets the Formatter with the this context's settings applied to the base
formatter . |
DateTimeZone |
getTimeZone()
The user's timezone.
|
void |
setChronology(Chronology chronology)
Set the user's chronology.
|
void |
setTimeZone(DateTimeZone timeZone)
Set the user's timezone.
|
public void setChronology(Chronology chronology)
public Chronology getChronology()
public void setTimeZone(DateTimeZone timeZone)
public DateTimeZone getTimeZone()
public DateTimeFormatter getFormatter(DateTimeFormatter formatter)
formatter
.formatter
- the base formatter that establishes default formatting rules, generally context independent