Timestamp
This node outputs the current date and time.
The Timestamp node provides the current system time.
The Timestamp node outputs the current time as a Date object or numeric timestamp. It updates whenever the Do signal is triggered.
Inputs
Actions
| Signal | Description |
|---|---|
| Do | Updates the timestamp to "now". |
Outputs
General
| Data | Description |
|---|---|
| Date | The current date object. |
| Unix Timestamp | The number of milliseconds since Jan 1, 1970. |
Events
| Signal | Description |
|---|---|
| Done | Triggered after the timestamp updates. |
Usage
Recording Creation Time
- When a user clicks "Save", trigger Do on Timestamp.
- Connect Date to the field of a Create New Record node.
Measuring Duration
- Trigger Do at start of event (store result).
- Trigger Do at end of event.
- Subtract Start Time from End Time to get duration.
Detailed Behavior
- Static: The output does not update automatically (it's not a clock). It only captures the time when triggered.
Troubleshooting
- Old Time: If you read the output without triggering Do, you might get the time from when the node was initialized.