hodatime-0.1.1.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
LanguageHaskell2010

Data.HodaTime.Interval

Contents

Description

An Interval is a period of time between two Instants.

Synopsis

Types

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