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 something like tha
> date_Ymd="%s/%s/%s" % (datedayfirst.split('/')[2],datedayfirst.split
> ('/')[1],datedayfirst.split ('/')[0])
>
> I was lookigng for sometinh like that :
>
> datestr2num(a,dayfirst=True)
> or
> datestr2num(a,fmt="%d/%m/%Y")
>
> On Dec 11, 2007 11:16 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> > 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 strpdate2num in load doing this :
> >
> > Try stripping the double quote characters from you file.
> >
> > JDH
> >
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-- 
Lionel Roubeyrie - [EMAIL PROTECTED]
Chargé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to