kotest-assertions / io.kotest.properties / localDateTime

localDateTime

fun Gen.Companion.localDateTime(minYear: Int = 1970, maxYear: Int = 2030): Gen<LocalDateTime>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Generates a stream of random LocalDateTimes

This generator creates randomly generated LocalDates, in the range [minYear,maxYear].

If any of the years in the range contain a leap year, the date 29/02/YEAR will always be a constant value of this generator.

See Also

localDateTime

localTime