Commit af83192d authored by Victor Zverovich's avatar Victor Zverovich

Fix warnings

parent 6952732b
......@@ -480,17 +480,15 @@ struct chrono_formatter {
std::chrono::duration<rep, Period>(val));
}
Rep hour() const {
return static_cast<Rep>(mod((s.count() / 3600), 24));
}
Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); }
Rep hour12() const {
Rep hour = mod((s.count() / 3600), 12);
Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12));
return hour <= 0 ? 12 : hour;
}
Rep minute() const { return mod((s.count() / 60), 60); }
Rep second() const { return mod(s.count(), 60); }
Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); }
Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); }
std::tm time() const {
auto time = std::tm();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment