Skip to main content

User Guide

Timestamp Generator

This section provides a comprehensive description of the Timestamp Generator Rule.

For a summary of the rule and its compatibility with Privitar jobs and execution environments, see masking-rules.png Masking Rule Types.

Data Types

The supported data types for this rule are:

  • Timestamp

Description

The value is replaced by a randomly generated timestamp, within a user-defined range, using a specified format. The default format is yyyy-MM-dd'T'HH:mm:ss.SSS. For example:

2019-10-21T21:34:21.254

The Start of timestamp range (inclusive) box is the earliest timestamp that can be randomly selected within the specified range.

The End of timestamp range (exclusive) box is the latest timestamp that can be randomly selected within the specified range.

Masking Behavior

The options are described in the following table:

Option

Description

Timestamp Format

The format of the output is specified by a Date Format string for CSV file processing. The format that can be used is described Date and Timestamp formats. (For Avro, Parquet and Hive files the natively encoded format will be retained.

Start of Timestamp range (inclusive)

Start of date range that is used to generate the random timestamp. The date is inclusive. That is, it includes the specified timestamp in the timestamp range.

End of Timestamp range (exclusive)

End of date range that is used to generate the random timestamp. The date is exclusive. That is, it excludes the specified timestamp from the timestamp range.

Tokenization Behavior