class JodaTimeContextHolder
A holder for a thread-local JodaTimeContext with user-specific Joda-Time settings.
Author
Keith Donald
Author
Juergen Hoeller
Since
3.0
See Also
org.springframework.context.i18n.LocaleContextHolder
JodaTimeContextHolder()
A holder for a thread-local JodaTimeContext with user-specific Joda-Time settings. |
static fun getFormatter(formatter: DateTimeFormatter, locale: Locale): DateTimeFormatter
Obtain a DateTimeFormatter with user-specific settings applied to the given base Formatter. |
|
static fun getJodaTimeContext(): JodaTimeContext
Return the JodaTimeContext associated with the current thread, if any. |
|
static fun resetJodaTimeContext(): Unit
Reset the JodaTimeContext for the current thread. |
|
static fun setJodaTimeContext(jodaTimeContext: JodaTimeContext): Unit
Associate the given JodaTimeContext with the current thread. |