Skip to content

Instantly share code, notes, and snippets.

@bulkan
Last active December 10, 2015 13:19
Show Gist options
  • Save bulkan/4440314 to your computer and use it in GitHub Desktop.
Save bulkan/4440314 to your computer and use it in GitHub Desktop.
from datetime import datetime, timedelta
created_at = datetime(2012, 12, 19, 13, 5, 20, 213002)
if created_at >= datetime.now - timedelta(days=14):
print "two weeks has past since created_at"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment