<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Gabriele Battaglia:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Mi risponde: 41, 7, 31.</blockquote></div><br><div><div class="gmail_signature"><div>from datetime import *<br></div><div><div>from calendar import monthrange</div><div><br></div><div>born = date(1974,9,13)</div><div>today = date.today()</div><div><br></div><div>age = today.year - born.year - ((today.month, today.day) < (born.month, born.day)), (today.month - born.month + - (today.day<born.day)) % 12, today.day-born.day + (0 if today.day>=born.day else monthrange(born.year, born.month)[1])</div><div><br></div><div># (40, 7, 1)</div></div></div></div>
</div></div>