Thanks, and to complete my example here is that alternative
// Another alternative
val jodaValue2 = (OfficeMotion_time.state as DateTimeType).zonedDateTime
var hours_3 = jodaValue2.getHour()
logInfo("rules", hours_3.toString())
And all this is to be depreciated in OH 3, which ditches Jodatime for Java Time