1.1 --- a/imiptools/data.py Sat Jan 20 17:41:23 2018 +0100
1.2 +++ b/imiptools/data.py Sat Jan 20 18:18:12 2018 +0100
1.3 @@ -402,20 +402,21 @@
1.4
1.5 return period in self.get_periods(end=period.get_start_point(), inclusive=True)
1.6
1.7 - def has_recurrence(self, recurrenceid):
1.8 + def has_recurrence_period(self, recurrenceid):
1.9
1.10 """
1.11 Return whether this object, employing the fallback time zone where no
1.12 - time zone information is defined, has the given 'recurrenceid'.
1.13 + time zone information is defined, has the given 'recurrenceid'. Any
1.14 + found period will be returned, None otherwise.
1.15 """
1.16
1.17 start_point = self.get_recurrence_start_point(recurrenceid)
1.18
1.19 for p in self.get_periods(end=start_point, inclusive=True):
1.20 if p.get_start_point() == start_point:
1.21 - return True
1.22 + return p
1.23
1.24 - return False
1.25 + return None
1.26
1.27 def get_updated_periods(self, start=None, end=None):
1.28