cleveland-0.3.2: Testing framework for Morley.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hedgehog.Range.Tezos.Core.Timestamp

Description

Timestamp range utility functions

Synopsis

Documentation

minTimestamp :: Timestamp Source #

Minimal (earliest) timestamp used for the default Range Timestamp

maxTimestamp :: Timestamp Source #

Maximal (latest) timestamp used for the default Range Timestamp

midTimestamp :: Timestamp Source #

Median of minTimestamp and maxTimestamp. Useful for testing (exactly half of generated dates will be before and after this date).

timestampRangeFromSeconds :: Integer -> Integer -> Range Timestamp Source #

Generate a linear Range of timestamps between lower and upper bounds specified in seconds from the start of the UNIX epoch (Jan 1st 1970).