I have tried six ways to sunday to figure this out before turning to this forum.... I have read all I can, but alas! I fail in figuring out what seemingly should be a simple routine.
How can I determine the duration between two set times???
This is the best I can come up with without a getting a series of errors, but it's just numbers nowhere near the range I am looking for.
Appreciate some help, thanks folks
ABG
August 26, 2020, 9:32pm
2
Are they both just from Time Pickers, without any date adjustments?
If you sleep through midnight, you need to add a day's worth of milliseconds to the wake time ms, otherwise your subtraction will come out negative.
(draggable blocks)
Use this to get your sleep duration from 2 Time Instants.
Hey ABG, I am back to this routine.
2 things, 1, for curiosity, why a modulus equation? and 2, how do I convert the quotient to a readable duration of time?
Vielen Dank, Anke. ( Entschuldigung mein Deutsch ist nicht so gut!)
My result adds 12 hours to the equation. Can I just delete that?
Anke
October 11, 2020, 4:25pm
6
To which equation? Show your blocks and see here (point 4) to debug your blocks:
Before you ask a question / open a new topic
please take care of the following points:
The forum was previously searched for similar topics / issues.
Give a precise (detailed) description of
the issue / bug,
the goal.
Show the (relevant) blocks (images, screenshots of blocks in high quality).
Debug your blocks (connect to Companion and right mouse click: → Do it).
Name the Android / iOS version running on your (test) device.
Do not open multiple threads on the same topic.
If you haven't al…
Entering the same values as you had, 11:00 pm (23:00), 06:50, the result I got was 19:50
system
Closed
October 18, 2020, 5:40pm
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.