src/bda/calendar/base/calculator.py
def firstDayOfCW(year, cw, tzinfo=None):
    """First day of a numbered calendar week.

    @param year: year where the week is of (int)
    @param cw: calendar week (int).
    """
    # thx to Peter Otten, base found at
    # http://mail.python.org/pipermail/python-list/2004-May/264156.html
    day = datetime.datetime(year, 2, 1, tzinfo=tzinfo)
    year, weekBase, dayBase = day.isocalendar()
    day += datetime.timedelta(1 - dayBase + (cw - weekBase) * 7)
    return day
First day of a numbered calendar week.

    @param year: year where the week is of (int)
    @param cw: calendar week (int).
    
First day of a numbered calendar week.
First day of a numbered calendar week .
def firstDayOfCW(year, cw, tzinfo=None):
    day = datetime.datetime(year, 2, 1, tzinfo=tzinfo)
    year, weekBase, dayBase = day.isocalendar()
    day += datetime.timedelta(1 - dayBase + (cw - weekBase) * 7)
    return day
def firstDayOfCW ( year , cw , tzinfo = None ) : day = datetime . datetime ( year , 2 , 1 , tzinfo = tzinfo ) year , weekBase , dayBase = day . isocalendar ( ) day += datetime . timedelta ( 1 - dayBase + ( cw - weekBase ) * 7 ) return day
First day of a numbered calendar week.
First day of a numbered calendar week .
"""First day of a numbered calendar week.

    @param year: year where the week is of (int)
    @param cw: calendar week (int).
    """ # thx to Peter Otten, base found at # http://mail.python.org/pipermail/python-list/2004-May/264156.html
year
year where the week is of (int)
year where the week is of ( int )
cw
calendar week (int).
calendar week ( int ) .
tzinfo