FlowDSL Node Catalog
DateTime
Parse, format, add, diff, or convert dates and durations.
Overview
| Property | Value |
|---|---|
| Node ID | core/datetime |
| Kind | transform |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.DateTime |
| Icon | lucide:clock |
| Color | #8b5cf6 |
| Tags | date, time, transform |
Outputs
out— (no description)
Settings
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
duration | string | — | — | — | For add: Go duration string (e.g. "24h", "-1h"). |
inputFormat | string | — | 2006-01-02T15:04:05Z07:00 | — | Go time layout for parse/format. |
op | string (now|parse|format|add|…) | yes | now | — | |
outputFormat | string | — | 2006-01-02T15:04:05Z07:00 | — | |
outputKey | string | yes | result | — | |
sourcePath | string | — | — | — | |
timezone | string | — | UTC | — |
Example
yaml
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: transform
action_ref: core/datetime
config:
duration: "value"
inputFormat: "value"
op: now
outputFormat: "value"
outputKey: result
sourcePath: some.packet.path
timezone: UTC