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

DirectionPortLabel
InputinputInput
OutputoutputOutput

Properties

PropertyTypeDefaultDescription
Operation
operation
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 field
inputField
string Dot-path to the date value to read. Leave blank to use the payload itself.
Shown when (operation ?? "format") !== "now"
Output field
outputField
string Dot-path to write the result to. Leave blank to write back over the input location (for now: the payload).
Timezone
timezone
string IANA timezone the operation is evaluated in, e.g. America/New_York. Leave blank for UTC.
Format
format
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).
Amount
amount
int 1 How many units to add or subtract.
Shown when operation === "add" || operation === "subtract"
Unit
unit
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 field
otherField
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.