DateTimeBuilder

final class DateTimeBuilder(genNow: Gen[Now], past: TimeSpec, future: TimeSpec) extends DateTimeBuilderJava8
Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def aroundNow(d: FiniteDuration): DateTimeBuilder
def asDate: Gen[Date]
def fromNowMinus(d: FiniteDuration): DateTimeBuilder
def untilNowPlus(d: FiniteDuration): DateTimeBuilder

The current time is resampled every time it is needed

The current time is resampled every time it is needed

def withNowMs(nowMs: => Long): DateTimeBuilder

The current time is sampled once and reused

The current time is sampled once and reused

Concrete fields

lazy val asEpochMs: Gen[Long]