node-red-contrib-chronos 1.25 #178
Pinned
jensrossbach
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Welcome to the new release 1.25 of node-red-contrib-chronos! This release brings some new stuff to time switch and filter node as well as a large extension to time change node. Besides this, there have also been some bugfixes and smaller improvements done.
See the most noteworthy changes below and be aware about breaking changes that were introduced in this release.
One time switch/filter node operator got a slightly different meaning and two JSONata functions for time switch/filter nodes have incompatibly changed their signature, see breaking changes in release notes for details.
Time comparison precision
If you do not want to compare two times in time switch or filter node always on millisecond granularity, you now have the possibility to specify the precision for the comparison. You can choose between millisecond, second, minute, hour, day, month and year as precision level. If you select a lower precision like for instance day, it now makes a difference if a time is for instance equal to another one or later. Therefore the four new operators ==, !=, until and since have been introduced (the since operator replaces the previous after operator and the latter now means "later than").
Duration support in time change node
The time change node got a big rework and now supports durations additionally to moments in time. A duration is basically a timespan or period of time and can be created by specifying two times - a start time and an end time. Similar to moments, durations can be modified by adding or subtracting a certain amount of time and they can be converted to different numeric or string-based formats.
Dynamic amount of time
It is now possible in time change node to retrieve the amount of time to set for a time part or to add/subtract from a moment or duration from environment/context variables or message properties (previously it was only possible to specify fixed values in the configuration).
Beta Was this translation helpful? Give feedback.
All reactions