public final class DayPeriodRules extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DayPeriodRules.DayPeriod |
| Modifier and Type | Method and Description |
|---|---|
DayPeriodRules.DayPeriod |
getDayPeriodForHour(int hour) |
static DayPeriodRules |
getInstance(ULocale locale)
Get a DayPeriodRules object given a locale.
|
double |
getMidPointForDayPeriod(DayPeriodRules.DayPeriod dayPeriod) |
boolean |
hasMidnight() |
boolean |
hasNoon() |
public static DayPeriodRules getInstance(ULocale locale)
locale - locale for which the DayPeriodRules object is requested.locale.public double getMidPointForDayPeriod(DayPeriodRules.DayPeriod dayPeriod)
public boolean hasMidnight()
public boolean hasNoon()
public DayPeriodRules.DayPeriod getDayPeriodForHour(int hour)