← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210756]: Not able to write the text file.

 

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

RaiMan posted a new comment:
Here you are:

until = list(time.localtime())
until[3:6] = (15, 54, 0) # hour minute second
timeUntil =  time.mktime(tuple(until))
timeToWait = int(timeUntil - time.time())

# only for debug
fmt = "time to wait from now %s til %s : %d sec"
print fmt%(time.strftime("%H:%M"), 
        time.strftime("%H:%M", tuple(until)), 
        timeToWait)

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