← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #172656]: calculate an age using two dates

 

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

RaiMan posted a new comment:
@vitalliuss
principally ok, but the semantics are not ok:
years = str(timedelta/365).split(' ')

timedelta/365 works, but the result are still days - you take it as
years and the excerpt of the year is too complicated

better and more straightforward
years = timedelta.days/365

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