Skip to main content
System
UTC Timestamp
time.Time
code reference

Definition

The utc timestamp transformer randomly generates a utc timestamp in UTC timezone and returns back an tiem.Time representation of that timestamp.

By default, the generated timestamp will always be in the past. To generate a timestamp that is in the future, set the future config to true.

Configurations

Depending on your validations, you may want to configure the output utc timestamp. The utc timestamp transformer has the following configuration options:

NameDescriptionDefaultExample InputExample Output
FutureGenerates a utc timestamp in the future from the moment when the transformer is executedfalseN/AJanuary 1, 2030, 00:00:00 UTC

Examples

Here are some examples of what an output state value may look like.

FutureExample InputExample Output
trueFebruary 13, 2021, 00:00:00 UTCJuly 8, 2025, 00:00:00 UTC
falseJanuary 1, 2000, 00:00:00 UTCSeptember 21, 1989, 00:00:00 UTC