Class DayPeriodRules

java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.DayPeriodRules

public final class DayPeriodRules extends Object
  • Method Details

    • getInstance

      public static DayPeriodRules getInstance(ULocale locale)
      Get a DayPeriodRules object given a locale. If data hasn't been loaded, it will be loaded for all locales at once.
      Parameters:
      locale - locale for which the DayPeriodRules object is requested.
      Returns:
      a DayPeriodRules object for locale.
    • getMidPointForDayPeriod

      public double getMidPointForDayPeriod(DayPeriodRules.DayPeriod dayPeriod)
    • hasMidnight

      public boolean hasMidnight()
    • hasNoon

      public boolean hasNoon()
    • getDayPeriodForHour

      public DayPeriodRules.DayPeriod getDayPeriodForHour(int hour)