Last active
August 29, 2015 14:03
-
-
Save jinqian/32c7f155ef8dfd482063 to your computer and use it in GitHub Desktop.
generate unix time stamp w/ time delta
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
import datetime | |
import calendar | |
future = datetime.datetime.utcnow() + datetime.timedelta(days=14) | |
ts = calendar.timegm(future.timetuple()) | |
print ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment