node-red-contrib-simpletime is a lightweight Node-RED node designed to inject and format date and time information into message payloads. Its current stable version is 3.1.0, and based on its npm activity and badge presence, it appears to maintain a regular update cadence. The node provides various pre-formatted date and time properties (e.g., `msg.myymd`, `msg.mytime`, `msg.myepoch`) that can be easily accessed in subsequent flow nodes like function nodes or UI templates. A key differentiator is its minimal footprint and simplicity for common date/time tasks, contrasting with more robust but heavier alternatives like `node-red-contrib-moment` for advanced timezone handling. It can operate on the current system time or process a provided `msg.date` input.
npm install node-red-contrib-simpletimeVerified import paths — ran on the pinned version, not inferred.
Installs the node-red-contrib-simpletime package into your Node-RED environment and outlines a basic flow to demonstrate its functionality by injecting a message and observing the added time/date properties in the debug sidebar.
Ensure `msg.date` is formatted as a valid ISO 8601 string (e.g., `2024-04-16T12:02:05Z`), a GMT string (e.g., `Mon, 22 Apr 2024 19:55:05 GMT`), a YYYY-MM-DD string, or a numeric Unix timestamp (e.g., `1715538484102`).
For advanced timezone requirements or date calculations, install and utilize `node-red-contrib-moment` either in conjunction with or as an alternative to `node-red-contrib-simpletime`.
This package is a Node-RED node. It must be installed into your Node-RED user directory (typically `~/.node-red`) via `npm install node-red-contrib-simpletime` and subsequently used within the Node-RED flow editor, not directly referenced in JavaScript code.
Ensure you installed the package in your Node-RED user directory (often `~/.node-red`). After installation, you must restart your Node-RED instance for new nodes to be loaded and appear in the palette.
No dependency data recorded yet.