hodatime-0.2.2.1: A fully featured date/time library based on Nodatime
Copyright(C) 2016 Jason Johnson
LicenseBSD-style (see the file LICENSE)
MaintainerJason Johnson <jason.johnson.081@gmail.com>
Stabilityexperimental
PortabilityTBD
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.HodaTime.Interval

Description

An Interval is a period of time between two Instants.

Synopsis

Types

data Interval Source #

Instances

Instances details
Show Interval Source # 
Instance details

Defined in Data.HodaTime.Interval

Eq Interval Source # 
Instance details

Defined in Data.HodaTime.Interval

Ord Interval Source # 
Instance details

Defined in Data.HodaTime.Interval

Constructor

Lenses

start :: Functor f => (Instant -> f Instant) -> Interval -> f Interval Source #

Lens for the start component of the Interval

end :: Functor f => (Instant -> f Instant) -> Interval -> f Interval Source #

Lens for the end component of the Interval

Functions

contains :: Interval -> Instant -> Bool Source #

Determines if the Instant is between the start and end of the Interval. The interval includes the start but excludes the end

duration :: Interval -> Duration Source #

Get the Duration between the start and the end of the Interval