Page 1 of 1

How do i get hours:minutes notation?

Posted: Wednesday 06 December 2017 20:14
by rizzah
Hi,

Bit of a noob question, but i currently use domoticz.time.hour >= 8 (for example), but i rather use time in hours:minutes (like 8:30).
I noticed you can use domoticz.time.rawTime which responds with hours:minutes:seconds (which could be something to work with), but then a line like if (domoticz.time."rawTime >= 8:30:00) is not working. i Also tried if (domoticz.time.hour >= '8:30:00') but this didnt work either.

Can anyone help me with this?

Re: How do i get hours:minutes notation?

Posted: Wednesday 06 December 2017 22:39
by dannybloe
That’s not possible as raw is a string (text) and you cannot do numberlike comparisons with it. So you have to stick with what you had.