Date & Time
processing.datetime Processing v0.1.0 Formats, parses, and computes with dates — add/subtract, diff, start/end of a unit, or the current time — in any IANA timezone.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | Input |
| Output | output | Output |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Operationoperation | select | "format" | What to do with the date: format it as text, parse text into a date, add/subtract time, diff two dates, snap to the start/end of a unit, or emit the current time. formatparseaddsubtractdiffstartOfendOfnow |
Input fieldinputField | string | — | Dot-path to the date value to read. Leave blank to use the payload itself. Shown when (operation ?? "format") !== "now" |
Output fieldoutputField | string | — | Dot-path to write the result to. Leave blank to write back over the input location (for now: the payload). |
Timezonetimezone | string | — | IANA timezone the operation is evaluated in, e.g. America/New_York. Leave blank for UTC. |
Formatformat | string | "yyyy-MM-dd HH:mm:ss" | Tokens: yyyy MM dd HH mm ss SSS, MMM (short month), EEE (short weekday), [literal] in square brackets. Special: "x" = epoch milliseconds (number), "iso" = ISO-8601. Parse with a blank format auto-accepts ISO strings and epoch numbers. Now honors this too (blank = ISO). |
Amountamount | int | 1 | How many units to add or subtract. Shown when operation === "add" || operation === "subtract" |
Unitunit | select | "days" | Unit for add/subtract, the diff result, or the start-of/end-of boundary. yearsmonthsweeksdayshoursminutessecondsmilliseconds Shown when ["add", "subtract", "diff", "startOf", "endOf"].includes(operation) |
Other fieldotherField | string | — | Dot-path to the second date for diff (result = other − input, in the unit above). Shown when operation === "diff" |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.