| 1141 | } |
| 1142 | |
| 1143 | static void date_time(struct tm *tm, int hour) |
| 1144 | { |
| 1145 | /* |
| 1146 | * If we do not yet have a specified day, we'll use the most recent |
| 1147 | * version of "hour" relative to now. But that may be yesterday. |
| 1148 | */ |
| 1149 | if (tm->tm_mday < 0 && tm->tm_hour < hour) |
| 1150 | tm->tm_mday = -2; /* eventually handled by update_tm() */ |
| 1151 | tm->tm_hour = hour; |
| 1152 | tm->tm_min = 0; |
| 1153 | tm->tm_sec = 0; |
| 1154 | } |
| 1155 | |
| 1156 | static void date_midnight(struct tm *tm, struct tm *now UNUSED, int *num) |
| 1157 | { |
no outgoing calls
no test coverage detected