Yes, I think strpdate2num is based on dateutil.parser.parse thast's why I
tried dayfirst=True which is used with dateutil.parser.parse.
It would be funny if from a list of string, it could be automatically try to
decide between day/month/year, month/day/year format... (it´s a joke)
--
Hi Emmanuel,
look at dateutil.parser.parse, there is exactly what you search.
Le mardi 18 décembre 2007, Emmanuel a écrit :
> Ok, thank you!
>
> I'm missing an option to (easily) use date that start with the day
> day/month/year (it is the case in Brazil and France for example)
>
> I'm using somet
Ok, thank you!
I'm missing an option to (easily) use date that start with the day
day/month/year (it is the case in Brazil and France for example)
I'm using something like tha
date_Ymd="%s/%s/%s" % (datedayfirst.split('/')[2],datedayfirst.split
('/')[1],datedayfirst.split ('/')[0])
I was lookign
On Dec 11, 2007 6:00 AM, Emmanuel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've a little problem with date conversion. I have a csv file which looks
> like :
> "Data","Valor"
> "15/01/2007"," 6,700012000"
> "12/01/2007"," 6,659903000"
>
> "11/01/2007"," 6,701586000"
>
> I try to get date using function
Hi,
I've a little problem with date conversion. I have a csv file which looks
like :
"Data","Valor"
"15/01/2007"," 6,700012000"
"12/01/2007"," 6,659903000"
"11/01/2007"," 6,701586000"
I try to get date using function strpdate2num in load doing this :
from pylab import datestr2num, load
def comma