New DateTime in OH3/Java Time

Hi there,

i am in the process of migrating from OH2.5 to OH3 and try to update my rules since JodaTime is not supported anymore.

Can anyone help me translate this to Java Time?

var Number lastExecNumber = new DateTime(vRollershutter_automotion_sunrise_last_partial.state.toString).getMinute

Any help would be highly appreciated

have a look at this thread: DateTime Conversion (openHAB 3.x)

1 Like