1.1 --- a/imiptools/data.py Wed Jul 29 00:18:59 2015 +0200
1.2 +++ b/imiptools/data.py Wed Jul 29 16:39:08 2015 +0200
1.3 @@ -23,7 +23,7 @@
1.4 from datetime import date, datetime, timedelta
1.5 from email.mime.text import MIMEText
1.6 from imiptools.dates import format_datetime, get_datetime, get_datetime_tzid, \
1.7 - get_duration, get_freebusy_period, get_period, \
1.8 + get_duration, get_period, \
1.9 get_tzid, to_timezone, to_utc_datetime
1.10 from imiptools.period import Period, RecurringPeriod, period_overlaps
1.11 from vCalendar import iterwrite, parse, ParseError, to_dict, to_node
2.1 --- a/imiptools/dates.py Wed Jul 29 00:18:59 2015 +0200
2.2 +++ b/imiptools/dates.py Wed Jul 29 16:39:08 2015 +0200
2.3 @@ -333,23 +333,6 @@
2.4 else:
2.5 return dt
2.6
2.7 -def get_freebusy_period(start, end, tzid):
2.8 -
2.9 - """
2.10 - For the given 'start' datetime, together with the given 'end' datetime, and
2.11 - given a 'tzid' either from the datetimes or provided for the user, return a
2.12 - (start, end) tuple containing datetimes in the UTC time zone, where dates
2.13 - are converted to points in time so that each day has a specific start and
2.14 - end point defined in UTC.
2.15 -
2.16 - Here, 'tzid' is used to "project" dates into a time zone of interest before
2.17 - then being converted into UTC start and end datetimes.
2.18 - """
2.19 -
2.20 - start = to_utc_datetime(start, tzid)
2.21 - end = to_utc_datetime(end, tzid)
2.22 - return start, end
2.23 -
2.24 # iCalendar-related conversions.
2.25
2.26 def end_date_from_calendar(dt):