← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258626]: wait until specified time

 

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

    Status: Answered => Open

retano is still having a problem:
I adapted it this way:

# inserted after diff=bt-at

 diff = bt-at
 if diff < 0:
      b = time.struct_time((a[0], a[1], a[2], 23, 59, 0, 0, 0, a[-1]));
      bt = time.mktime(b)
      diff = bt-at
      b = time.struct_time((a[0], a[1], a[2], h, m, s, 0, 0, a[-1]));
      bt = time.mktime(b)
      diff = diff + bt
#

is it correct?

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