Skip to content

TimestampFormat

TimestampFormat = "iso" | "epoch" | ((date) => string | number)

Defined in: types.ts:154

Controls how a record’s timestamp is produced.

  • "iso" (default): date.toISOString() — an ISO 8601 string.
  • "epoch": date.getTime() — epoch milliseconds as a number.
  • a function: receives the raw Date and returns whatever wire shape your host’s contract requires.