Class TimeZoneIndicatorSupport

java.lang.Object
io.jmix.ui.component.mainwindow.TimeZoneIndicatorSupport

@Component("ui_TimeZonesIndicatorSupport") public class TimeZoneIndicatorSupport extends Object
Convenience bean providing some methods for working with time zones.
  • Field Details

    • UTC

      public static final TimeZone UTC
    • AD_HOC_TZ_PATTERN

      public static final Pattern AD_HOC_TZ_PATTERN
    • timeSource

      @Autowired protected TimeSource timeSource
  • Constructor Details

    • TimeZoneIndicatorSupport

      public TimeZoneIndicatorSupport()
  • Method Details

    • getDisplayOffset

      public String getDisplayOffset(@Nullable TimeZone timeZone)
      Returns:
      string representing the offset of the given time zone from GMT
    • getDisplayNameLong

      public String getDisplayNameLong(@Nullable TimeZone timeZone)
      Returns:
      long string representation of the given time zone
    • getDisplayNameShort

      public String getDisplayNameShort(@Nullable TimeZone timeZone)
      Returns:
      short string representation of the given time zone