← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #196676]: How to insert tomorrows date?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
here is a template for what j-the-k supposed:

import datetime
tomorrow = datetime.date.today() + datetime.timedelta(1)
openApp("notepad") # open a new notepad window and give focus
type(str(tomorrow)) # has to be casted to String

Take care: If type() in many cases does not type the expected
characters, you can use paste() instead (see faq 933)

If you want to have the date in different formats:
http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior

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