#include #include #include int main(int, char **) { DayNum today = DateLUT::instance().toDayNum(time(nullptr)); for (DayNum date = today; DayNum(date + 10) > today; --date) { DB::MergeTreePartInfo part_info("partition", 0, 0, 0); std::string name = part_info.getPartNameV0(date, date); std::cerr << name << '\n'; time_t time = DateLUT::instance().YYYYMMDDToDate(DB::parse(name)); std::cerr << LocalDateTime(time) << '\n'; } return 0; }