DateTime Operation

Hi,
i need to operate in a rule with DateTime Item.
I need to do something like a timer with 2 setpoint, and when I reach the setpoint, perform a operation.

I setup 4 items, hour start, minutes start, hour stop, minute stop, and I need to check this setpoint with DateTime Now.

How can I get hour and minutes from Now ?

Regards

Hi.
I am using for such purpose string format: now.toString(“HH:mm”) and then just comparing the result to some edge values, like “06:00”, etc.

Thanks for Help

Regards
Marco