Eventvisor

Modules

module-timestamp

Timestamp module allows generating timestamps via lookups in your transforms and conditions.

Installation

Install with npm in your application:

Command
$ npm install --save \
@eventvisor/sdk \
@eventvisor/module-timestamp

Setting up

And then set it up when initializing the SDK:

import { createInstance } from "@eventvisor/sdk";
import { createTimestampModule } from "@eventvisor/module-timestamp";
const eventvisor = createInstance({
modules: [
createTimestampModule(),
],
});

Usage example

In your transforms:

events/my_event.yml
# ...
transforms:
- type: set
target: someTimestampProperty
lookup: timestamp

Or in conditions:

conditions/my_condition.yml
# ...
conditions:
- lookup: timestamp
operator: after
value: 2025-10-01T22:37:09.760+02:00

Formats

The lookup name can be provided in the following ways to get the current timestamp in the desired format:

Lookup nameExample valueDescription
timestamp2025-10-01T22:37:09.760+02:00ISO 8601 format with timezone offset
timestamp.epoch1727815029Unix timestamp in seconds
timestamp.epoch_ms1727815029760Unix timestamp in milliseconds

Dot-separated lookup name helps provide additional information to the module.

Previous
module-pixel