| 46 | const int DATE_BUF_LEN = 4 + 2 + 2 + 1; // [YYYYMMDD*] |
| 47 | |
| 48 | constexpr long seconds(const struct tm& theTm) { |
| 49 | return 60 * (60 * theTm.tm_hour + theTm.tm_min) + theTm.tm_sec; |
| 50 | } |
| 51 | |
| 52 | void sprint_gm_date(char* buf, time_t when, long* sec = nullptr); |
| 53 | bool sscan_date(const char* date, struct tm& theTm); |
no outgoing calls
no test coverage detected