Transform timspan with extended end of the form of time less than 24 hours to extended form, i.e from 25 to 48 hours. Example: 12:15-06:00 -> 12:15-30:00.
| 121 | // time less than 24 hours to extended form, i.e from 25 to 48 hours. |
| 122 | // Example: 12:15-06:00 -> 12:15-30:00. |
| 123 | void NormalizeExtendedEnd(osmoh::Timespan & span) |
| 124 | { |
| 125 | auto & endHourMinutes = span.GetEnd().GetHourMinutes(); |
| 126 | auto const duration = endHourMinutes.GetDuration(); |
| 127 | if (duration < 24_h) |
| 128 | endHourMinutes.SetDuration(duration + 24_h); |
| 129 | } |
| 130 | |
| 131 | osmoh::TTimespans SplitExtendedHours(osmoh::Timespan span) |
| 132 | { |
no test coverage detected