Question #172656 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/172656

    Status: Open => Answered

vitalliuss proposed the following answer:
Try this:

from datetime import *
d = date(1990, 5, 29)
now = date.today()
timedelta = now-d
years = str(timedelta/365).split(' ')
print years[0]

Also this page can be helpful:
http://docs.python.org/library/datetime.html

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to