in a rule I want to check weather an item of type DateTime was changed within the last hour.
So the if looks like this:
(VSiPhone6_LocationLastUpdate.state as DateTimeType).calendar.after(now.minusMinutes(60))
Which seems to work (Designer doesn’t say anything about an error. But in the log I get:
The method getCalendar() from the type DateTimeType is deprecated
What’s the best way to achive this? It looks to me like working with DateTimes is not that easy…
Thanks in advance,