that matt bone .com |

python thirty days ago

These tiny things make Python fun and useful:

1
2
3
4
    
    import datetime
    thirty_days = datetime.timedelta(days=30)
    thirty_days_ago = datetime.date.today() - thirty_days