public interface TimeFrame extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
TimeFrame.Day
Days of the week.
|
Modifier and Type | Method and Description |
---|---|
void |
addFrame(int startTime,
int endTime,
TimeFrame.Day... days)
Adds a period to this TimeFrame.
|
void addFrame(int startTime, int endTime, TimeFrame.Day... days) throws IllegalArgumentException
For example, to add to a TimeFrame the period on Sundays between 1AM and 4PM:
addFrame (1, 16, Day.SUNDAY);
To add to a TimeFrame the period on Sundays, Mondays, Tuesdays between 2PM and 4PM:
addFrame (14, 16, Day.SUNDAY, Day.MONDAY, Day.TUESDAY);
startTime
- a short integer between 0 and 24.endTime
- a short integer between 0 and 24.days
- a day or a comma-separated list of days.IllegalArgumentException
- if the start time is later than the end time or the days are invalid. Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.