1.1 --- a/imiptools/dates.py Sun May 17 18:47:06 2015 +0200
1.2 +++ b/imiptools/dates.py Sun May 17 18:53:18 2015 +0200
1.3 @@ -143,6 +143,15 @@
1.4 else:
1.5 return None
1.6
1.7 +def get_tzid(dtstart_attr, dtend_attr):
1.8 +
1.9 + """
1.10 + Return any time regime details from the given 'dtstart_attr' and
1.11 + 'dtend_attr' attribute collections.
1.12 + """
1.13 +
1.14 + return dtstart_attr.get("TZID") or dtend_attr.get("TZID")
1.15 +
1.16 def get_datetime_attributes(dt, tzid=None):
1.17
1.18 "Return attributes for 'dt' and 'tzid'."