gen
gen
nyaya.gen
DateTimeBuilder
TimeSpec
Delta
Fixed
Unlimited
DateTimeBuilder
DateTimeBuilderJava8
DateTimeBuilderJava8
Distinct
Distinct
Fixer
Fixer
DistinctEndo
DistinctFn
Gen
Gen
GenCharExt
ToNonEmptySeq
ToNonEmptySeq
Now
Now
GenCtx
GenCtx
GenOpsWithInvariantA
GenSize
GenSize
SampleNumber
ScalaVerSpecific
SetLikeForLazyList
SetLikeForArraySeq
SetLikeImplicits
GenClassExt
SeedCtx
SetLike
SetLike
Generic
CastFromAny
ByClassTag
ForOption
ForList
ForVector
ForSet
ForStream
ForEphemeralStream
Implicits
NyayaSetLikeExt
SetLikeLowPriImplicits
SizeSpec
SizeSpec
Default
DisableDefault
Exactly
OneOf
StateGen
ThreadNumber
gen
/
nyaya.gen
/
DateTimeBuilder
DateTimeBuilder
final
class
DateTimeBuilder
(genNow:
Gen
[
Now
], past:
TimeSpec
, future:
TimeSpec
) extends
DateTimeBuilderJava8
Companion
object
Graph
Supertypes
trait
DateTimeBuilderJava8
class
Object
trait
Matchable
class
Any
Value members
Value members
Concrete methods
def
aroundNow
(d:
FiniteDuration
):
DateTimeBuilder
def
aroundNowDays
(d:
Double
):
DateTimeBuilder
def
aroundNowMonths
(d:
Double
):
DateTimeBuilder
def
aroundNowMs
(d:
Long
):
DateTimeBuilder
def
aroundNowWeeks
(d:
Double
):
DateTimeBuilder
def
aroundNowYears
(d:
Double
):
DateTimeBuilder
def
asDate
:
Gen
[
Date
]
def
fromDate
(d:
Date
):
DateTimeBuilder
def
fromEpochMs
(e:
Long
):
DateTimeBuilder
def
fromNow
:
DateTimeBuilder
def
fromNowMinus
(d:
FiniteDuration
):
DateTimeBuilder
def
fromNowMinusDays
(d:
Double
):
DateTimeBuilder
def
fromNowMinusMonths
(d:
Double
):
DateTimeBuilder
def
fromNowMinusMs
(d:
Long
):
DateTimeBuilder
def
fromNowMinusWeeks
(d:
Double
):
DateTimeBuilder
def
fromNowMinusYears
(d:
Double
):
DateTimeBuilder
def
untilDate
(d:
Date
):
DateTimeBuilder
def
untilEpochMs
(e:
Long
):
DateTimeBuilder
def
untilNow
:
DateTimeBuilder
def
untilNowPlus
(d:
FiniteDuration
):
DateTimeBuilder
def
untilNowPlusDays
(d:
Double
):
DateTimeBuilder
def
untilNowPlusMonths
(d:
Double
):
DateTimeBuilder
def
untilNowPlusMs
(d:
Long
):
DateTimeBuilder
def
untilNowPlusWeeks
(d:
Double
):
DateTimeBuilder
def
untilNowPlusYears
(d:
Double
):
DateTimeBuilder
def
withNow
(now: =>
Now
):
DateTimeBuilder
def
withNowGen
(g:
Gen
[
Now
]):
DateTimeBuilder
def
withNowLive
:
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
def
withNowSampledOnce
:
DateTimeBuilder
The current time is sampled once and reused
The current time is sampled once and reused
Concrete fields
lazy
val
asEpochMs
:
Gen
[
Long
]