Convert Unix timestamp to Readable Date/time

2010-07-22 Thread kak...@gmail.com
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

Re: Convert Unix timestamp to Readable Date/time

2010-07-22 Thread Chris Rebert
On Thu, Jul 22, 2010 at 5:54 AM, kak...@gmail.com kak...@gmail.com wrote: 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 :,