Lines Matching refs:time
163 const std::tm *time = std::localtime(&now);
170 if (time != nullptr) {
171 rrule += GetWeeklyRule(event, *time);
175 if (time != nullptr) {
176 rrule += GetMonthlyRule(event, *time);
180 if (time != nullptr) {
181 rrule += GetYearlyRule(event, *time);
204 std::string GetWeeklyRule(const Event &event, const std::tm &time)
216 if (time.tm_wday < MAX_DAY_OF_WEEK) {
217 rrule = weekList[time.tm_wday];
223 std::string GetMonthlyRule(const Event &event, const std::tm &time)
242 rrule += std::to_string(time.tm_mday);
247 std::string GetYearlyRule(const Event &event, const std::tm &time)
286 rrule += std::to_string(time.tm_mday);
288 rrule += std::to_string(time.tm_mon + monOffset);