(year, month, day)
return datetime.date(year, month, day).weekday()
Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).
Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).
Return weekday ( 0 - 6 ~ Mon - Sun ) for year month ( 1 - 12 ) day ( 1 - 31 ) .
def weekday(year, month, day):
    """Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31)."""
    if not datetime.MINYEAR <= year <= datetime.MAXYEAR:
        year = 2000 + year % 400
    return datetime.date(year, month, day).weekday()
def weekday ( year , month , day ) : if not datetime . MINYEAR <= year <= datetime . MAXYEAR : year = 2000 + year % 400 return datetime . date ( year , month , day ) . weekday ( )