Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.4 KB

File metadata and controls

21 lines (16 loc) · 1.4 KB
id title slug sidebar_label
date_gens
Kotlinx DateTime Gens
kotlinx-datetime-gens.html
Kotlinx DateTime

Kotest provides an optional module that provides generators for KotlinX DateTime.

:::note To use, add io.kotest.extensions:kotest-property-datetime:version to your build. :::

Generator Description JVM JS Native
Arb.date(yearRange) Generates LocalDates with the year between the given range and other fields randomly.
Arb.datetime(yearRange, hourRange, minuteRange, secondRage) Generates LocalDateTimes with all fields in the given ranges
Arb.instant(range) Generates Instants with the epoch randomly generated in the given range