On Thu, 3 Jun 2010 09:53:19 -0500 Carlos Herrera Polo wrote:

>     s_fechahora_utc = str(fechahora_utc)
>     s_fechahora_utc = s_fechahora_utc[:19]
> 
>     fechahora_local=time.strptime(s_fechahora_utc , "%Y-%m-%d
> %H:%M:%S") s_fechahora_local = time.strftime("%Y-%m-%d %H:%M:%S",
> time.localtime(time.mktime(fechahora_local)-time.timezone ))
>     return s_fechahora_local

¿Por qué complicarlo tanto? ¿No te sirve el código que propuso Reynaldo?
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a