Re: [BangPypers] Best way to convert this string into datetime object

2012-08-30 Thread kracekumar ramaraju
In [27]: from dateutil import parser In [28]: p = parser.parse("Thu Aug 30 11:59:18 + 2012") In [29]: p.tzname Out[29]: In [30]: p.tzname() Out[30]: 'UTC' On Thu, Aug 30, 2012 at 8:09 PM, Kushal Das wrote: > On Thu, Aug 30, 2012 at 8:03 PM, Ramchandra Apte > wrote: > > Sorry you should

Re: [BangPypers] Best way to convert this string into datetime object

2012-08-30 Thread Kushal Das
On Thu, Aug 30, 2012 at 8:03 PM, Ramchandra Apte wrote: > Sorry you should use datetime.strptime > It was failing that is why I asked here. Managed to do this using dateutil package in the most simple way. Kushal -- http://fedoraproject.org http://kushaldas.in __

Re: [BangPypers] Best way to convert this string into datetime object

2012-08-30 Thread Ramchandra Apte
Sorry you should use datetime.strptime On 30 August 2012 20:01, Ramchandra Apte wrote: > I googled "string to date python" and found > http://stackoverflow.com/questions/466345/converting-string-into-datetime. > From there I see you should use the > strptime

Re: [BangPypers] Best way to convert this string into datetime object

2012-08-30 Thread Ramchandra Apte
I googled "string to date python" and found http://stackoverflow.com/questions/466345/converting-string-into-datetime. >From there I see you should use the strptime() function On 30 August 2012 19:58, Kushal Das wrote: > Hi, > What is the b

[BangPypers] Best way to convert this string into datetime object

2012-08-30 Thread Kushal Das
Hi, What is the best way to convert "Thu Aug 30 11:59:18 + 2012" into a datetime object ? Kushal -- http://fedoraproject.org http://kushaldas.in ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers