jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Advanced time input for conditions #142

Closed jensrossbach closed 4 months ago

jensrossbach commented 4 months ago

This pull request adds support for the time input of conditions in time switch and time filter nodes to retrieve the times from environment variables, context variables or message properties. The times can be specified either as number or as string. A numerical value is interpreted as number of milliseconds since the UNIX epoch or number of milliseconds since midnight if the value is less than 86.400.000. A string can be specified as a standalone time, as an ISO 8601 datetime or as an RFC 2822 datetime.