In [27]: from dateutil import parser In [28]: p = parser.parse("Thu Aug 30 11:59:18 +0000 2012")
In [29]: p.tzname Out[29]: <function tzname> In [30]: p.tzname() Out[30]: 'UTC' On Thu, Aug 30, 2012 at 8:09 PM, Kushal Das <kushal...@gmail.com> wrote: > On Thu, Aug 30, 2012 at 8:03 PM, Ramchandra Apte <maniandra...@gmail.com> > 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 > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers