Well i have the following number 1279796174846
 i did the following:

mdate = 1279796174846
tempStr = str(mdate)
tempStr2 = tempStr[:-3]
tempInt = int(tempStr2)
print "Last Login :", datetime.datetime.fromtimestamp(tempInt)

that prints out: 2010-07-22 06:56:14
But when i check my answer at http://www.onlineconversion.com/unix_time.htm

i got:    Thu, 22 Jul 2010 10:56:14 GMT which is what i want.
What am i doing wrong?
Thanks

Antonis
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to