[pyar] Sumas de meses

Marian mavignau en gmail.com
Sab Jun 2 20:10:13 ART 2012


AAAA=2012
MM=10
DD=10

import datetime
d=datetime.date(AAAA,MM,DD)
if d.month==12:
    r=datetime.date(d.year+1,1,d.day)
else:
    r=datetime.date(d.year,d.month+1,d.day)

print(d)
print(r)
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20120602/b9a18d4d/attachment.html>


More information about the pyar mailing list