28 : start_(std::chrono::system_clock::time_point::min())
29 , end_(std::chrono::system_clock::time_point::max())
46 TimePoint now = std::chrono::system_clock::now();
55 start_ = std::chrono::system_clock::time_point::min();
60 bzero(&tm,
sizeof(tm));
61 if (strptime(s.c_str(),
"%d/%m/%Y %H:%M", &tm))
63 start_ = std::chrono::system_clock::from_time_t(std::mktime(&tm));
68 throw std::runtime_error(
"invalid date.");
76 end_ = std::chrono::system_clock::time_point::max();
81 bzero(&tm,
sizeof(tm));
82 if (strptime(s.c_str(),
"%d/%m/%Y %H:%M", &tm))
84 end_ = std::chrono::system_clock::from_time_t(std::mktime(&tm));
89 throw std::runtime_error(
"invalid date.");