def dates_to_keep(dates,<EOL>years=<NUM_LIT:0>, months=<NUM_LIT:0>, weeks=<NUM_LIT:0>, days=<NUM_LIT:0>, firstweekday=SATURDAY,<EOL>now=None):
datetimes = to_keep((datetime.combine(d, time()) for d in dates),<EOL>years=years, months=months, weeks=weeks, days=days,<EOL>hours=<NUM_LIT:0>, minutes=<NUM_LIT:0>, seconds=<NUM_LIT:0>,<EOL>firstweekday=firstweekday, now=now)<EOL>return set(dt.date() for dt in datetimes)<EOL>
Return a set of dates that should be kept, out of ``dates``.

See ``to_keep`` for a description of arguments.