sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37206
Re: [Question #288521]: Typing Current datetime returning <class ‘datetime.datetime’>
Question #288521 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/288521
Status: Open => Answered
masuo proposed the following answer:
(1)datetime.datetime is class object.
Use classmethod today() with strftime().
CurrentTime = datetime.datetime.today().strftime("%Y/%m/%d %H:%M:%S")
(2)where do you want to report by type() ?
I think Debug.user() is useful for reporting.
Debug.user("Bot Started "+CurrentTime)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.