Skip to main content

Interface: DateConstraints

Defined in: packages/fast-check/src/arbitrary/date.ts:18

Constraints to be applied on date

Remarks​

Since 3.3.0

Properties​

max?​

optional max?: Date

Defined in: packages/fast-check/src/arbitrary/date.ts:30

Upper bound of the range (included)

Default Value​

new Date(8640000000000000)

Remarks​

Since 1.17.0


min?​

optional min?: Date

Defined in: packages/fast-check/src/arbitrary/date.ts:24

Lower bound of the range (included)

Default Value​

new Date(-8640000000000000)

Remarks​

Since 1.17.0


noInvalidDate?​

optional noInvalidDate?: boolean

Defined in: packages/fast-check/src/arbitrary/date.ts:36

When set to true, no more "Invalid Date" can be generated.

Default Value​

false

Remarks​

Since 3.13.0