Re: The fastest way to convert a long list of date

2009-02-08 Thread loredana . pier
First of all: Thanks for your reply My use case is the following: I perform a query to DB and the result of query is this; >>> print rows {‘Label’: {'2009:01:30': 9, '2009:01:28': 13, '2009:01:29': 19, '2009:01:26': 1, '2009:01:27': 3, '2009:01:20': 86, '2009:01:22': 3, '2009:01:23': 12, '2009:02:

The fastest way to convert a long list of date

2009-02-08 Thread loredana . pier
If I want to convert a single date format I can do: import datetime, dateutil.parser d = dateutil.parser.parse('2008-09-26) print d.strftime('%A %d, %b %y' ) but if I want convert a long list of time how can do it in the fastest way? for example: from ['2008-09-26’, '2008-09-28’, '2008-09-29’,...