Ask Your Question
1

How do we get the current time?

asked 2013-05-02 15:51:02 +0100

Aye gravatar image

updated 2013-05-02 17:27:15 +0100

vdelecroix gravatar image

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
3

answered 2013-05-02 16:27:53 +0100

vdelecroix gravatar image

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 15:51:02 +0100

Seen: 2,303 times

Last updated: May 02 '13