hodatime-0.1.1.1: A fully featured date/time library based on Nodatime

Data.HodaTime.Interval

Contents

Description

An Interval is a period of time between two Instants.

Synopsis

# Types

data Interval Source #

Instances

 Source # Methods Source # Methods(<) :: Interval -> Interval -> Bool #(>) :: Interval -> Interval -> Bool # Source # MethodsshowList :: [Interval] -> ShowS #

# 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

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

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