[PythonCE] Timestamp
Alex Mandel
tech_dev at wildintellect.com
Wed Jul 19 00:28:37 CEST 2006
So I was looking at an old post where someone used
Python 2.3.2 (#0, Dec 11 2003, 12:46:49) [MSC v.1200 32 bit (Unknown)] on
Pocket PC
>>> >>> import time
>>> >>> clock=time.clock()
>>> >>> local=time.localtime(clock)
>>> >>> local
(2004, 2, 27, 10, 14, 41, 4, -1, -1)
When I tried to repeat that on my Dell Axim X5 and on the Desktop
Emulator I always get
(1969,12,31,17...
Any idea how to actually get the time.
All I need is string that has mmddyy like 071806
I tried:
import time
from time import strftime
strftime("%m%d%y",gmtime())
and got and error
NameError: name 'gmtime' is not defined
if I throw in local from the above code it works except its not the
current time its the default microsoft time.
Any ideas? Thanks -
Alex
More information about the PythonCE
mailing list