spring-framework / org.springframework.context.i18n / SimpleTimeZoneAwareLocaleContext / <init>

<init>

SimpleTimeZoneAwareLocaleContext(@Nullable locale: Locale, @Nullable timeZone: TimeZone)

Create a new SimpleTimeZoneAwareLocaleContext that exposes the specified Locale and TimeZone. Every #getLocale() call will return the given Locale, and every #getTimeZone() call will return the given TimeZone.

Parameters

locale - the Locale to expose

timeZone - the TimeZone to expose