imip-agent

Change of imiptools/period.py

627:23f998c9dacd
imiptools/period.py
     1.1 --- a/imiptools/period.py	Sat Aug 01 01:25:21 2015 +0200
     1.2 +++ b/imiptools/period.py	Sat Aug 01 01:35:03 2015 +0200
     1.3 @@ -189,7 +189,8 @@
     1.4  
     1.5      """
     1.6      Return whether 'period' refers to one of the 'recurrenceids', interpreted
     1.7 -    using 'tzid' if necessary.
     1.8 +    using 'tzid' if necessary. The 'recurrenceids' should be normalised to UTC
     1.9 +    datetimes according to time zone information provided by their objects.
    1.10      """
    1.11  
    1.12      for s in recurrenceids:
    1.13 @@ -200,8 +201,11 @@
    1.14  def is_affected(period, recurrenceid, tzid):
    1.15  
    1.16      """
    1.17 -    Return whether 'period' refer to 'recurrenceid', interpreted using 'tzid' if
    1.18 -    necessary.
    1.19 +    Return whether 'period' refers to 'recurrenceid', interpreted using 'tzid'
    1.20 +    if necessary. The 'recurrenceid' should be normalised to UTC datetimes
    1.21 +    according to time zone information provided by their objects. Otherwise,
    1.22 +    'tzid' is used to convert any date or floating datetime representation to a
    1.23 +    point in time.
    1.24      """
    1.25  
    1.26      if not recurrenceid: