|
| | LocalTimeRange () |
| | Construct a new Time Range object with the range of the entire day (inclusive) More...
|
| |
| | LocalTimeRange (LocalTimeHMS hmsStart, LocalTimeHMS hmsEnd=LocalTimeHMS("23:59:59")) |
| | Construct a new Time Range object with the specifies start and end times. More...
|
| |
| | LocalTimeRange (LocalTimeHMS hmsStart, LocalTimeHMS hmsEnd, LocalTimeRestrictedDate dateRestriction) |
| | Construct a new object that specifies start time, end time, and date restrictions. More...
|
| |
| | LocalTimeRange (LocalTimeHMS hmsStart, LocalTimeRestrictedDate dateRestriction) |
| | Construct a new object that specifies start time and date restrictions, used for at time and date schedules. More...
|
| |
|
void | clear () |
| | Clear time range to all day, every day.
|
| |
| time_t | getTimeSpan (const LocalTimeConvert &conv) const |
| | Get the number of seconds between start and end based on a LocalTimeConvert object. More...
|
| |
| int | compareTo (LocalTimeHMS hms) const |
| | Compares a time (LocalTimeHHS, local time) to this time range. More...
|
| |
| bool | isValidDate (LocalTimeYMD ymd) const |
| | Returns true if the date restrictions allow this day. More...
|
| |
| bool | inRange (LocalTimeValue localTimeValue) const |
| | Returns true if the date restrictions allow this date and the time is in this range (inclusive) More...
|
| |
| LocalTimeYMD | getExpirationDate () const |
| | For restricted time ranges, get the last date (YMD) that this time range could be valid. More...
|
| |
| void | fromTime (LocalTimeHMSRestricted hms) |
| | Set the date restrictions from a LocalTimeHMSRestricted object. More...
|
| |
| void | fromJson (JSONValue jsonObj) |
| | Fills in the time range from a JSON object. More...
|
| |
|
| LocalTimeRestrictedDate () |
| | Create an empty restricted date object. It will return false for any date passed to isValid.
|
| |
| | LocalTimeRestrictedDate (uint8_t mask) |
| | Create a date restricted object restricted to days of the week. More...
|
| |
| | LocalTimeRestrictedDate (uint8_t mask, std::initializer_list< const char * > onlyOnDates, std::initializer_list< const char * > exceptDates) |
| | Construct an object with an initializer list of strings. More...
|
| |
| | LocalTimeRestrictedDate (uint8_t mask, std::initializer_list< LocalTimeYMD > onlyOnDates, std::initializer_list< LocalTimeYMD > exceptDates) |
| | Construct an object with an initializer list of LocalTimeYMD objects. More...
|
| |
| LocalTimeRestrictedDate & | withOnAllDays () |
| | Set the mask value to MASK_ALL. Does not change only on date or except on date lists. More...
|
| |
| LocalTimeRestrictedDate & | withOnlyOnDays (LocalTimeDayOfWeek value) |
| | Restrict to days of the week. More...
|
| |
| LocalTimeRestrictedDate & | withOnlyOnDays (uint8_t mask) |
| | Restrict to certain dates. More...
|
| |
| LocalTimeRestrictedDate & | withOnlyOnDates (std::initializer_list< const char * > dates) |
| | Restrict to certain dates. More...
|
| |
| LocalTimeRestrictedDate & | withOnlyOnDates (std::initializer_list< LocalTimeYMD > dates) |
| | Restrict to certain dates. More...
|
| |
| LocalTimeRestrictedDate & | withExceptDates (std::initializer_list< const char * > dates) |
| | Dates that will always return false for isValid. More...
|
| |
| LocalTimeRestrictedDate & | withExceptDates (std::initializer_list< LocalTimeYMD > dates) |
| | Dates that will always return false for isValid. More...
|
| |
| bool | isEmpty () const |
| | Returns true if onlyOnDays mask is 0 and the onlyOnDates and exceptDates lists are empty. More...
|
| |
|
void | clear () |
| | Clear all settings.
|
| |
| bool | isValid (LocalTimeValue localTimeValue) const |
| | Returns true if a date is in the onlyOnDays or onlyOnDates list, and not in the exceptDates list. More...
|
| |
| bool | isValid (LocalTimeYMD ymd) const |
| | Returns true if a date is in the onlyOnDays or onlyOnDates list, and not in the exceptDates list. More...
|
| |
| bool | inOnlyOnDates (LocalTimeYMD ymd) const |
| | Returns true of a date is in the onlyOnDates list. More...
|
| |
| bool | inExceptDates (LocalTimeYMD ymd) const |
| | Returns true of a date is in the exceptDates list. More...
|
| |
| LocalTimeYMD | getExpirationDate () const |
| | Get the last date (YMD) that this restricted date could be valid. More...
|
| |
| void | fromJson (JSONValue jsonObj) |
| | Fills in this object from JSON data. More...
|
| |
Class to hold a time range in local time in HH:MM:SS format.