Datetime? - How to compare a date & time with time now


#1

1) Give a description of the problem
I cant get the datetime comparison to work to compare date and time with what time and date it is now.

2) What is the expected behavior?
I would like to rotate my color light between:
from: $year-12-24 - 04:00 AM to $year-12-25 - 03:00 AM

3) What is happening/not happening?
I cant get the time between to work, my comperision dont calculate the right numbers so the comparison become wrong.

I have tried several solutions and cant seem to get i right, so do you have an idea how to compare time now with date & time for a certain time frame?


#2

Can you post a screenshot of your piston? You are trying to use this as a condition or a restriction? If condition, select Virtual Device from the left, then Date/Time, then “Is Between”. This is what you should see.