Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
remove unnecesary function
Browse files Browse the repository at this point in the history
  • Loading branch information
yedi committed Jul 12, 2013
1 parent def0a1f commit 7d4e879
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions dimagi/utils/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,6 @@ def since(cls, days, enddate=None, format=DEFAULT_DATE_FORMAT, inclusive=True, t
start = end - timedelta(days=days)
return DateSpan(start, end, format, inclusive, timezone)

@classmethod
def default_since(cls, days, timezone=pytz.utc, inclusive=True):
enddate = datetime.now(tz=timezone)
if inclusive:
enddate = enddate - timedelta(days=1)
return cls.since(days, enddate=enddate, format="%Y-%m-%d", timezone=timezone, inclusive=inclusive)

def parse(self, startdate_str, enddate_str, parse_format, display_format=None):
"""
Expand Down

0 comments on commit 7d4e879

Please sign in to comment.