timespan-0.4.0.0: Useful timespan datatype and functions

Safe HaskellSafe
LanguageHaskell2010

Data.Time.TimeSpan

Synopsis

Documentation

data TimeSpan Source #

An abstract timespan. Use the provided smart constructors to create a meaningful timespan. Note that on first sight a Num instance might seem desirable, but this would defeat the purpose of having transparent and explicitly constructed timespans due to fromInteger.

Instances
Eq TimeSpan Source # 
Instance details

Defined in Data.Time.TimeSpan

Ord TimeSpan Source # 
Instance details

Defined in Data.Time.TimeSpan

Show TimeSpan Source # 
Instance details

Defined in Data.Time.TimeSpan

Semigroup TimeSpan Source # 
Instance details

Defined in Data.Time.TimeSpan

Monoid TimeSpan Source #

An empty TimeSpan is 0, and mappend is defined as addition

Instance details

Defined in Data.Time.TimeSpan