Datetime
Below is a list of available datetime mask functions.
Hasher
This function uses the FarmHash library to hash categorical values consistently. The Hasher maps one numeric value to another based on the FarmHash implementation, ensuring consistent results for identical inputs. This function is particularly useful when you need to anonymize numerical fields while maintaining a one-to-one relationship between input and output values, in other words, hashed values preserve the uniqueness and the format of the original data.
Parameters
No parameters.
Example
If you configure:
The results will be:
Datetime Noise
Adds a random shift to a datetime value based on specified minimum and maximum shift parameters.
Parameters
Maximum negative noise
: The smallest amount the date can be adjusted, relative to the original date.Use negative numbers to shift the date into the past.
Example: If the date part is set to "Day" and the minimum shift is set to
-5
, this ensures the date will not be shifted earlier than 5 days prior to the original date.A positive number shifts the date forward.
Example: If the minimum shift is
5
, the date will not shift earlier than 5 days after the original date.
Maximum positive noise
: The largest amount by which the date can be adjusted from the original value.Use positive numbers to shift the date into the future.
Example: If the date part is set to "Day" and the maximum shift is set to
5
, the date will not be shifted later than 5 days after the original date.
Noise type
: The unit of time (e.g., second, minute, hour day, month, year) that will define the granularity of the shift.The selected unit will be applied to both the minimum and maximum shift fields.
Consistent mapping
: Datetime Noise supports consistent mapping.
Example
If you configure:
The results will be:
Last updated
Was this helpful?