First of all I should say that my Java/Xtend programming experience is very limited.
I try to reuse a time variable in my rules. Thus, I initially defined it:
var DateTime Joda_Sunrise_Time
Now I want to assign a value to it later on in my rule file that comes from a string. But I only found examples where a string is called with the constructor, i.e.
Joda_Sunrise_Time = new DateTime(Sunrise_Time.state.toString)
Is there no method that I can call? The
parse method could do the job but complains it is static. How can I proceed?