Name

date — Defines a date generator.

Synopsis

<date [min="minValue"] [max="maxValue"]/>
				

Description

This element defines a date generator. Generates random dates from min to max (inclusive). The date must be specified in US locale (mm/dd/yy).

Attributes

min

The minimum date. If not specified, it will take the Unix Epoch (1/1/1970) as minimum date.

max

The maximum date. If not specified, it will take the current date.

Example

Example 23. Date generator.

<project name="postgresqlTest">
	<metadata>
		<table name="table0">
			<generator row-count="10000" />
			...
			<column name="some_date" ds-type="DATE">
				<generator>
					<date />
				</generator>
			</column>
			...
			<column name="some_another_date" data-type="DATE">
				<generator>
					<date min="01/01/01" max="01/01/10" />
				</generator>
			</column>
			...
		</table>
		...
	</metadata>
	...
</project>