← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #257717]: Conditions at the time

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
import datetime as dt
now = dt.datetime.today()
print now # prints 2014-12-22 10:41:29.061000
print now.hour # range 0 .. 24
print now.weekday() # range 0 (Sunday) .. 6

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