Fill result with fields that present in start and missing in end. 2015 Jan 30 - Feb 20 <=> 2015 Jan 30 - 2015 Feb 20 2015 Jan 01 - 22 <=> 2015 Jan 01 - 2015 Jan 22
| 72 | // 2015 Jan 30 - Feb 20 <=> 2015 Jan 30 - 2015 Feb 20 |
| 73 | // 2015 Jan 01 - 22 <=> 2015 Jan 01 - 2015 Jan 22 |
| 74 | osmoh::MonthDay NormalizeEnd(osmoh::MonthDay const & start, osmoh::MonthDay const & end) |
| 75 | { |
| 76 | osmoh::MonthDay result = start; |
| 77 | if (end.HasYear()) |
| 78 | result.SetYear(end.GetYear()); |
| 79 | if (end.HasMonth()) |
| 80 | result.SetMonth(end.GetMonth()); |
| 81 | if (end.HasDayNum()) |
| 82 | result.SetDayNum(end.GetDayNum()); |
| 83 | return result; |
| 84 | } |
| 85 | |
| 86 | uint8_t GetWeekNumber(std::tm const & date) |
| 87 | { |