| 10 | using namespace editor::ui; |
| 11 | |
| 12 | size_t SpanLength(osmoh::Timespan const & span) |
| 13 | { |
| 14 | using osmoh::operator""_h; |
| 15 | auto const start = span.GetStart().GetHourMinutes().GetDurationCount(); |
| 16 | auto const end = span.GetEnd().GetHourMinutes().GetDurationCount(); |
| 17 | return end - start + (span.HasExtendedHours() ? osmoh::HourMinutes::TMinutes(24_h).count() : 0); |
| 18 | } |
| 19 | |
| 20 | bool DoesIncludeAll(osmoh::Timespan const & openingTime, osmoh::TTimespans const & spans) |
| 21 | { |
no test coverage detected