Vettero

Date

Date and time operations on epoch-ms timestamps.

Type

data-ops.date
Folderbasic/data-ops
Channels

Any

Pipe

Value

Scope

Any

Date (canvas label Date · plus the operation) runs one date/time Operation and writes the result to the data pipe. Instants are milliseconds since Unix epoch. The inspector labels those fields Timestamp (ms).

Unit choices: millisecond, second, minute, hour, day, week, month, year. Timezone fields use names such as UTC or America/New_York. Format / Pattern uses tokens such as YYYY-MM-DD HH:mm:ss.

Use Schedule to run a graph later. This block only computes values.

Configure

SettingDescription
OperationGrouped list (Core, Manipulation, Getters, and so on). Changing it resets the other fields
Remaining fieldsDepend on Operation. Bind literals or context paths

Handles

HandleRole
In (target)Incoming connection
Out (source)Continues after the operation

Pipe schema

The next block reads this on the data pipe (pipe.value). The type depends on Operation: number (timestamps and components), true/false, or text (format).

Operations

Core

OperationResultInputs
NownumberNone — current time in ms
ParsenumberInput (required), optional Format, optional Timezone
From Unix (s → ms)numberUnix seconds

Manipulation

OperationResultInputs
Add / SubtractnumberTimestamp (ms), Amount, Unit
Start of / End ofnumberTimestamp (ms), Unit
RoundnumberTimestamp (ms), Unit — nearest unit boundary
FloornumberSame as start of unit
CeilnumberInstant after end of unit

Getters

Each takes Timestamp (ms) and returns a number: Get year, Get month (0–11), Get day of month, Get day of week (0–6) (Sunday = 0), Get hour, Get minute, Get second, Get millisecond, Day of year, ISO week of year, Get quarter (1–4).

Comparison

OperationResultInputs
Is after / Is beforetrue/falseA (ms), B (ms)
Is sametrue/falseA (ms), B (ms), optional Unit
Is betweentrue/falseTimestamp (ms), Min (ms), Max (ms), optional Inclusive bounds (default yes)

Difference and format

OperationResultInputs
DifferencenumberStart (ms), End (ms), Unit, optional Fractional
FormattextTimestamp (ms), Pattern

Timezone

OperationResultInputs
To UTC (epoch ms)numberTimestamp (ms)
To timezone (epoch ms)numberTimestamp (ms), Timezone
UTC offset (minutes)numberTimestamp (ms), optional Timezone

Helpers and business days

OperationResultInputs
Is valid timestamptrue/falseTimestamp (ms)
To Unix (ms → s)numberTimestamp (ms) — whole seconds
Earliest / LatestnumberA (ms), B (ms)
Add business daysnumberTimestamp (ms), Days — skips Saturday and Sunday
Next business daynumberTimestamp (ms) — next weekday

Use case

  • Now then Add a number of days for a due date.
  • Parse an ISO string from an API, then Format for a message.
  • Add business days for SLA deadlines that skip weekends.
Copyright © 2026