Database schema optimization - part 11

This commit is contained in:
mdecimus
2025-11-12 19:09:06 +01:00
parent 3e181ae467
commit 8bbcb999d1
40 changed files with 541 additions and 493 deletions

View File

@@ -27,6 +27,10 @@ pub struct TimeRange {
}
impl TimeRange {
pub fn new(start: i64, end: i64) -> Self {
Self { start, end }
}
pub fn is_in_range(&self, match_overlap: bool, start: i64, end: i64) -> bool {
if !match_overlap {
// RFC4791#9.9: (start < DTEND AND end > DTSTART)