Ask Your Question
1

How do we get the current time?

asked 2013-05-02 08:51:02 -0500

Aye gravatar image

updated 2013-05-02 10:27:15 -0500

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!!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-05-02 09:27:53 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-02 08:51:02 -0500

Seen: 725 times

Last updated: May 02 '13