[pyar] Error en conversión de string a fecha

Juan BC jbc.develop en gmail.com
Mie Nov 21 15:07:20 ART 2012


Otra es descartar el nombre del dia total es info implicita en los demas
datos.
El nov 21, 2012 2:44 p.m., "Mariano Mara" <mariano.mara en gmail.com> escribió:

> On 11/21/2012 02:31 PM, Facundo Batista wrote:
>
>> 2012/11/21 Maxi <maxirobaina en gmail.com>:
>>
>>  Python 2.7.1+ (r271:86832, Sep 27 2012, 21:16:52)
>>> [GCC 4.5.2] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>> import locale
>>>>>>
>>>>>> locale.getlocale()
>>>>>>
>>>>> (None, None)
>>>
>>>
>>> Script:
>>> ('es_AR', 'UTF8')
>>>
>>> ¿Posible solución?
>>>
>>
>> El tema es que te están pasando el nombre del día en inglés. ¿Estás
>> seguro que siempre te va a venir así? si sí, seteá el locale a None o
>> EN o algo así y listo... si no, estás en el horno :)
>>
>>
> Siempre podes ahorrarte algunos dolores de cabeza usando
> dateutil.parser.parse[1] si es que no te molesta salirte de la standard lib.
>
> Mariano
>
>
> [1] http://labix.org/python-**dateutil/#head-**
> a23e8ae0a661d77b89dfb3476f85b2**6f0b30349c<http://labix.org/python-dateutil/#head-a23e8ae0a661d77b89dfb3476f85b26f0b30349c>
> ______________________________**_________________
> pyar mailing list pyar en python.org.ar
> http://listas.python.org.ar/**listinfo/pyar<http://listas.python.org.ar/listinfo/pyar>
>
> PyAr - Python Argentina - Sitio web: http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de
> Argentina - http://www.usla.org.ar
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20121121/2b8cbd6f/attachment.html>


More information about the pyar mailing list