Datetime
Below is a list of available datetime mockers.
Date
Generates a random datetime object between two specified date objects, from year until days.
Parameters
Start date
: The start date for the generation range (Format:%d/%m/%Y
).End date
: The end date for the generation range (Format:%d/%m/%Y
).Consistent mapping
: Date supports consistent mapping.
Example
If you configure:
The results will be:
Date of birth
Generates a date of birth which is a datetime object.
Parameters
Consistent mapping
: Date supports consistent mapping.
Example
If you configure:
The results will be:
Date/Time
Generates a random datetime object between two specified datetime objects, from year until seconds.
Parameters
Start date
: The start date for the generation range. (Format:%d/%m/%Y %H:%M:%S
)End date
: The end date for the generation range.Consistent mapping
: Date/Time supports consistent mapping.
Example
If you configure:
The results will be:
Date/Time series
Generates a series of datetime values at regular intervals based on a specified time unit and step size.
Parameters
Start date
: The starting date or datetime for the series.Time unit
: The unit of time for the step increment ("day"
,"week"
,"month"
,"year"
).Number
: The number of units to step forward per iteration.
Example
If you configure:
The results will be:
Future date
Generates a future datetime object, always after the current day.
Parameters
Consistent mapping
: Future date supports consistent mapping.
Example
If you configure:
The results will be:
Last updated
Was this helpful?