Created
August 29, 2014 10:18
-
-
Save mrkschan/933c37508d5ef7314c23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
import functools | |
import pickle | |
def days_ago(days): | |
dt = datetime.now() - timedelta(days=days) | |
return dt.strftime('%y%m%s') | |
print pickle.dumps(functools.partial(days_ago, 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment