| 410 | |
| 411 | template <typename Unit> |
| 412 | bool IsTimeInRange(Unit duration) { |
| 413 | constexpr Unit kMinIncl = std::chrono::duration_cast<Unit>(std::chrono::seconds{0}); |
| 414 | constexpr Unit kMaxExcl = std::chrono::duration_cast<Unit>(std::chrono::seconds{86400}); |
| 415 | return duration >= kMinIncl && duration < kMaxExcl; |
| 416 | } |
| 417 | |
| 418 | template <typename RawValue, typename Appender> |
| 419 | Return<Appender> FormatOutOfRange(RawValue&& raw_value, Appender&& append) { |