Time await - Start time not found

29 views
Skip to first unread message

Christoffer Olofsson

unread,
May 12, 2022, 4:18:48 PMMay 12
to Automate
Hello again!
I'm trying to call Time await after two user inputs.
  • Pick date (pickedDate)
  • Pick time (pickedTime)
Time of day = pickedTime
Day of month = dateParts(pickedDate)[2]
Month = pow(2, dateParts(pickedDate)[1]-1) // also tried wrapping with hexEncode()
Year = dateParts(pickedDate)[0]

Which result in the following error: Start time not found
What am I doing wrong? 🙂
Thanks!

Henrik "The Developer" Lindqvist

unread,
May 12, 2022, 4:31:16 PMMay 12
to Automate
Try:
Month = 1 << dateParts(pickedDate)[1]

Christoffer Olofsson

unread,
May 12, 2022, 4:55:19 PMMay 12
to Automate
(This might become a dual post. I replied from my email, but apparent it did not arrive here. I thought that was how Google Groups worked. I or they maybe has changed something... 🤷‍♂️)
That worked perfectly for setting an await for today! But when I tried 6 am tomorrow it crashed with the same error message.

Henrik "The Developer" Lindqvist

unread,
May 12, 2022, 5:24:17 PMMay 12
to Automate
Odd. Does it work if you pick/write/hardcode in the expected Time of day, Day of month, Month, Year in the Time Await block, instead of using expressions?

An alternative is to use the Delay block with duration= timeMerge(pickedDate, pickedTime) - Now

Christoffer Olofsson

unread,
May 12, 2022, 5:33:09 PMMay 12
to Automate
Thanks, I did that instead. 👍
Have a nice evening!

Christoffer Olofsson

unread,
May 13, 2022, 5:17:20 PMMay 13
to Automate
That worked perfectly for setting an await for today! But when I tried 6 am tomorrow it crashed with the same error message.

--
You received this message because you are subscribed to a topic in the Google Groups "Automate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/PB8dZsI6kk4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/187dc929-7084-4ce6-9afc-4befd56b4f47n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages