public class JodaTimeContext extends Object
A null
property value indicate the user has not specified a setting.
JodaTimeContextHolder
Constructor and Description |
---|
JodaTimeContext() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.Chronology |
getChronology()
Return the user's chronology (calendar system), if any.
|
org.joda.time.format.DateTimeFormatter |
getFormatter(org.joda.time.format.DateTimeFormatter formatter)
Get the DateTimeFormatter with the this context's settings
applied to the base
formatter . |
org.joda.time.DateTimeZone |
getTimeZone()
Return the user's time zone, if any.
|
void |
setChronology(org.joda.time.Chronology chronology)
Set the user's chronology (calendar system).
|
void |
setTimeZone(org.joda.time.DateTimeZone timeZone)
Set the user's time zone.
|
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-independentCopyright © 2015. All rights reserved.