Top Description Methods
org.springframework.context.i18n

public Interface TimeZoneAwareLocaleContext

extends LocaleContext
Known Direct Implementers
org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext
Imports
java.util.TimeZone, org.springframework.lang.Nullable

Extension of LocaleContext, adding awareness of the current time zone.

Having this variant of LocaleContext set to LocaleContextHolder means that some TimeZone-aware infrastructure has been configured, even if it may not be able to produce a non-null TimeZone at the moment.

Authors
Juergen Hoeller, Nicholas Williams
Since
4.0
See Also
LocaleContextHolder#getTimeZone()

Method Summary

Modifier and TypeMethod and Description
public TimeZone

Returns:

the current TimeZone, or null if no specific TimeZone associated
getTimeZone
()

Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy.

Inherited from org.springframework.context.i18n.LocaleContext:
getLocale

Method Detail

getTimeZoneback to summary
public TimeZone getTimeZone()

Return the current TimeZone, which can be fixed or determined dynamically, depending on the implementation strategy.

Returns:TimeZone

the current TimeZone, or null if no specific TimeZone associated

Annotations
@Nullable