How do we get the current time?
I would like to use the current time instead of a password as a key for some encryption. Does anyone know how to obtain the current time with Sage?
Thank you!!!!
I would like to use the current time instead of a password as a key for some encryption. Does anyone know how to obtain the current time with Sage?
Thank you!!!!
Hi,
You may use the time library of Python:
sage: from time import time
sage: time()
1367522924.932015
More informations at http://docs.python.org/2/library/time.html.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2013-05-02 15:51:02 +0100
Seen: 2,290 times
Last updated: May 02 '13