|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.format.datetime.joda.JodaTimeContext
public class JodaTimeContext
A context that holds user-specific Joda Time settings such as the user's Chronology (calendar system) and time zone.
A null property value indicate the user has not specified a setting.
JodaTimeContextHolder| Constructor Summary | |
|---|---|
JodaTimeContext()
|
|
| Method Summary | |
|---|---|
org.joda.time.Chronology |
getChronology()
The user's chronology (calendar system). |
org.joda.time.format.DateTimeFormatter |
getFormatter(org.joda.time.format.DateTimeFormatter formatter)
Gets the Formatter with the this context's settings applied to the base formatter. |
org.joda.time.DateTimeZone |
getTimeZone()
The user's timezone. |
void |
setChronology(org.joda.time.Chronology chronology)
Set the user's chronology. |
void |
setTimeZone(org.joda.time.DateTimeZone timeZone)
Set the user's timezone. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JodaTimeContext()
| Method Detail |
|---|
public void setChronology(org.joda.time.Chronology chronology)
public org.joda.time.Chronology getChronology()
public void setTimeZone(org.joda.time.DateTimeZone timeZone)
public org.joda.time.DateTimeZone getTimeZone()
public org.joda.time.format.DateTimeFormatter getFormatter(org.joda.time.format.DateTimeFormatter formatter)
formatter.
formatter - the base formatter that establishes default formatting rules, generally context independent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||