bigint to timestamp

2009-01-28 Thread Shah Sultan Alam
Hi Group, I have file with contents retrieved from mysql DB. which has a time field with type defined bigint(20) I want to parse that field into timestamp format(-MM-DD HH:MM:SS GMT) using python code. The value I found for that field is 212099016004150509 Give me sample code that does the

Re: bigint to timestamp

2009-01-28 Thread Ulrich Eckhardt
Shah Sultan Alam wrote: I have file with contents retrieved from mysql DB. which has a time field with type defined bigint(20) I want to parse that field into timestamp format(-MM-DD HH:MM:SS GMT) using python code. Try time.strftime. The value I found for that field is

Re: bigint to timestamp

2009-01-28 Thread Steve Holden
Shah Sultan Alam wrote: Hi Group, I have file with contents retrieved from mysql DB. which has a time field with type defined bigint(20) I want to parse that field into timestamp format(-MM-DD HH:MM:SS GMT) using python code. The value I found for that field is 212099016004150509 Give

Re: bigint to timestamp

2009-01-28 Thread Jon Clements
On Jan 28, 1:50 pm, Steve Holden st...@holdenweb.com wrote: Shah Sultan Alam wrote: Hi Group, I have file with contents retrieved from mysql DB. which has a time field with type defined bigint(20) I want to parse that field into timestamp format(-MM-DD HH:MM:SS GMT) using python

Re: bigint to timestamp

2009-01-28 Thread John Machin
On Jan 29, 1:05 am, Jon Clements jon...@googlemail.com wrote: On Jan 28, 1:50 pm, Steve Holden st...@holdenweb.com wrote: Shah Sultan Alam wrote: Hi Group, I have file with contents retrieved from mysql DB. which has a time field with type defined bigint(20) I want to parse that

Re: bigint to timestamp

2009-01-28 Thread John Machin
On Jan 29, 10:00 am, John Machin sjmac...@lexicon.net wrote: On Jan 29, 1:05 am, Jon Clements jon...@googlemail.com wrote: On Jan 28, 1:50 pm, Steve Holden st...@holdenweb.com wrote: Shah Sultan Alam wrote: Hi Group, I have file with contents retrieved from mysql DB. which