Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Created October 31, 2016 21:21
Show Gist options
  • Save blaylockbk/2cc74306c41ab50168f15298c485fd41 to your computer and use it in GitHub Desktop.
Save blaylockbk/2cc74306c41ab50168f15298c485fd41 to your computer and use it in GitHub Desktop.
from datetime import datetime, timedelta
base = datetime.today()
numdays = 5
date_list = [base - timedelta(days=x) for x in range(0,numdays)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment