2 * @brief repeating time-points and intervals
4 * @copyright Copyright © 2009 by Intra2net AG
6 * @contact info@intra2net.com
20 @brief Time points and intervals repeating each week
21 This class represents recurring time points and intervals
22 which can be repeated on configurable days of the week.
27 static const time_t StNimmerleinsDay;
30 /// Start point of time in seconds since the start of the day
32 /// End point of time in seconds since the start of the day. Only used when #Every != -1
34 /// Repeat event every xxx seconds in the half-open interval of #Begin and #End. -1 is disabled
36 /// Stores the active days this WeekCron is valid for
39 time_t get_next_point(const time_t calc_from, const int daysec, const bool todaycheck) const;
40 time_t get_previousnow_point(const time_t calc_from, const int daysec, const bool todaycheck) const;
41 void fill_tm_with_wallclock(struct tm *ft, const int daysec) const;
45 WeekCron(const std::string& daystring, const int begin);
46 WeekCron(const std::string& daystring, const int begin, const int end, const int every);
47 WeekCron(const I2n::Time::Week& week, const int begin);
48 WeekCron(const I2n::Time::Week& week, const int begin, const int end, const int every);
51 I2n::Time::Week get_week(void)
53 void set_week(const I2n::Time::Week& week)
57 void set_begin(const int begin)
61 void set_end(const int end)
65 void set_every(const int every)
70 time_t get_next_run(time_t calc_from=0) const;