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:
Name | Description | Default | Example Input | Example Output |
---|---|---|---|---|
Future | Generates a utc timestamp in the future from the moment when the transformer is executed | false | N/A | January 1, 2030, 00:00:00 UTC |
Examples
Here are some examples of what an output state value may look like.
Future | Example Input | Example Output |
---|---|---|
true | February 13, 2021, 00:00:00 UTC | July 8, 2025, 00:00:00 UTC |
false | January 1, 2000, 00:00:00 UTC | September 21, 1989, 00:00:00 UTC |