sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06909
Re: [Question #178932]: How can we keep time limit for change of password.
Question #178932 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/178932
Status: Open => Answered
RaiMan proposed the following answer:
You have to save the time somehow together with the password.
time handling as such:
start = time.time() # current time with base seconds
At any one time afterwards you can check
if time.time() - start > (24 * 60 * 60):
print "change possible"
else:
print "change not possible"
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.