Sara Khalatbari <sa************ @yahoo.com> writes:
Hi,
Is there a Modules in Python that returns the time &
date of today when ran?
You mean a method in a module? Yes, there's good 'ol time module, which will
probably provide what you need:
import time
time.time() # number of seconds (+ fract) elapsed after 01.01.1970
1115881981.3717 401 time.ctime() # current time in string format
'Thu May 12 10:13:20 2005' time.localtime( ) # current time as a tuple
(2005, 5, 12, 10, 13, 30, 3, 132, 1)
For details, see 'pydoc time'
--
# Edvard Majakari Software Engineer
# PGP PUBLIC KEY available Soli Deo Gloria!
$_ = '45647661726420 4d616a616b61726 92c206120436872 69737469616e20' ; print
join('',map{chr hex}(split/(\w{2})/)),uc substr(crypt(60 281449,'es'),2, 4),"\n";