Created
November 13, 2012 16:05
-
-
Save almorel/4066624 to your computer and use it in GitHub Desktop.
Python persistance des données
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 pickle | |
import datetime | |
# Store the time | |
pickle.dump( datetime.datetime.now(), open( "last.p", "wb" ) ) | |
# Retreive the last time | |
previous_time=pickle.load( open( "last.p", "rb" ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment