Skip to content

Instantly share code, notes, and snippets.

@syshack
Created January 16, 2012 04:58
Show Gist options
  • Save syshack/1619143 to your computer and use it in GitHub Desktop.
Save syshack/1619143 to your computer and use it in GitHub Desktop.
get yesterday dete str
#!/usr/bin/env python
import string
import datetime
today = string.join(string.split(str(datetime.date.today()),"-"),"")
yesterday = str(int(today) - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment