app/util/round_time.py
def round_month_down(origin_date):
    """
    Takes a datetime object and rounds down to the nearest month.
    E.g. 2/14/2013 becomes 2/1/2013
    :param datetime.datetime origin_date:
    :return datetime.datetime:
    """
    down_time = origin_date - timedelta(days=origin_date.day - 1)
    return down_time

    Takes a datetime object and rounds down to the nearest month.
    E.g. 2/14/2013 becomes 2/1/2013
    :param datetime.datetime origin_date:
    :return datetime.datetime:
    
Takes a datetime object and rounds down to the nearest month.
Takes a datetime object and rounds down to the nearest month .
def round_month_down(origin_date):
    down_time = origin_date - timedelta(days=origin_date.day - 1)
    return down_time
def round_month_down ( origin_date ) : down_time = origin_date - timedelta ( days = origin_date . day - 1 ) return down_time
Takes a datetime object and rounds down to the nearest month.
Takes a datetime object and rounds down to the nearest month .
"""
    Takes a datetime object and rounds down to the nearest month.
    E.g. 2/14/2013 becomes 2/1/2013
    :param datetime.datetime origin_date:
    :return datetime.datetime:
    """
None
datetime.datetime
origin_date
None