Dates support calendar arithmetic : Date Time : Development PYTHON examples


PYTHON examples » Development » Date Time »

 

Dates support calendar arithmetic


Dates support calendar arithmetic


from datetime import date


birthday = date(1964731)
now = date(2006731)

age = now - birthday
print age.days


 
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Date Time