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 fromDate(d: Date): DateTimeBuilder
def fromNowMinus(d: FiniteDuration): DateTimeBuilder
def untilDate(d: Date): DateTimeBuilder
def untilNowPlus(d: FiniteDuration): DateTimeBuilder
def withNow(now: => Now): 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]