| 86 | } |
| 87 | |
| 88 | std::string LocaltimeCondition::tmToString(const struct tm* const tm) |
| 89 | { |
| 90 | std::string tm_string; |
| 91 | tm_string.append("{ tm.tm_sec="); |
| 92 | tm_string.append(numberToString(tm->tm_sec)); |
| 93 | tm_string.append(" tm.tm_min="); |
| 94 | tm_string.append(numberToString(tm->tm_min)); |
| 95 | tm_string.append(" tm.tm_hour="); |
| 96 | tm_string.append(numberToString(tm->tm_hour)); |
| 97 | tm_string.append(" tm.tm_mday="); |
| 98 | tm_string.append(numberToString(tm->tm_mday)); |
| 99 | tm_string.append(" tm.tm_mon="); |
| 100 | tm_string.append(numberToString(tm->tm_mon)); |
| 101 | tm_string.append(" tm.tm_year="); |
| 102 | tm_string.append(numberToString(tm->tm_year)); |
| 103 | tm_string.append(" tm.tm_wday="); |
| 104 | tm_string.append(numberToString(tm->tm_wday)); |
| 105 | tm_string.append(" tm.tm_yday="); |
| 106 | tm_string.append(numberToString(tm->tm_yday)); |
| 107 | tm_string.append(" tm.tm_isdst="); |
| 108 | tm_string.append(numberToString(tm->tm_isdst)); |
| 109 | tm_string.append(" }"); |
| 110 | return tm_string; |
| 111 | } |
| 112 | |
| 113 | std::time_t LocaltimeCondition::stringToDaytime(const std::string& string) |
| 114 | { |
nothing calls this directly
no test coverage detected