Private
Public Access
1
0

calculates age group 2k

This commit is contained in:
Sander Roosendaal
2017-12-12 21:59:28 +01:00
parent 228ea8f980
commit 86a72545e0
5 changed files with 44 additions and 3 deletions

View File

@@ -263,3 +263,8 @@ def myqueue(queue,function,*args,**kwargs):
return job
from datetime import date
def calculate_age(born):
today = date.today()
return today.year - born.year - ((today.month, today.day) < (born.month, born.day))