from datetime import time, timedelta d = date.today() - timedelta(hours=2)
2012/7/4 Diego Uribe Gamez <[email protected]> > Me sale este error cuando intento restar estas dos horas directamente: > > unsupported operand type(s) for -: 'datetime.time' and 'datetime.time' > > como hago para restar satisfactoriamente dos horas con datetime.time? > > > -- > *Diego Alonso Uribe Gamez* > ------------------------------ > > *Desarrollador web* > > Twitter: @DiegoUG <http://www.twitter.com/DiegoUG> > > Google+: http://gplus.to/diegoug > ------------------------------ > > > > _______________________________________________ > Python-es mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ > > -- Eduardo Matus Coquelet Ingeniero Civil Informático y Telecomunicaciones. Celular: 77113825
_______________________________________________ Python-es mailing list [email protected] http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/
