# HG changeset patch # User Paul Boddie # Date 1438180748 -7200 # Node ID 11a77ae8abd909573e8844a934ef7416ee888651 # Parent 3e15d39530663c418346bca4ab200564aea05457 Removed the redundant get_freebusy_period function. diff -r 3e15d3953066 -r 11a77ae8abd9 imiptools/data.py --- a/imiptools/data.py Wed Jul 29 00:18:59 2015 +0200 +++ b/imiptools/data.py Wed Jul 29 16:39:08 2015 +0200 @@ -23,7 +23,7 @@ from datetime import date, datetime, timedelta from email.mime.text import MIMEText from imiptools.dates import format_datetime, get_datetime, get_datetime_tzid, \ - get_duration, get_freebusy_period, get_period, \ + get_duration, get_period, \ get_tzid, to_timezone, to_utc_datetime from imiptools.period import Period, RecurringPeriod, period_overlaps from vCalendar import iterwrite, parse, ParseError, to_dict, to_node diff -r 3e15d3953066 -r 11a77ae8abd9 imiptools/dates.py --- a/imiptools/dates.py Wed Jul 29 00:18:59 2015 +0200 +++ b/imiptools/dates.py Wed Jul 29 16:39:08 2015 +0200 @@ -333,23 +333,6 @@ else: return dt -def get_freebusy_period(start, end, tzid): - - """ - For the given 'start' datetime, together with the given 'end' datetime, and - given a 'tzid' either from the datetimes or provided for the user, return a - (start, end) tuple containing datetimes in the UTC time zone, where dates - are converted to points in time so that each day has a specific start and - end point defined in UTC. - - Here, 'tzid' is used to "project" dates into a time zone of interest before - then being converted into UTC start and end datetimes. - """ - - start = to_utc_datetime(start, tzid) - end = to_utc_datetime(end, tzid) - return start, end - # iCalendar-related conversions. def end_date_from_calendar(dt):