Module

Data.Time.Duration

#Seconds

#Minutes

#Hours

newtype Hours

A duration measured in hours.

Constructors

Instances

#Days

newtype Days

A duration measured in days, where a day is assumed to be exactly 24 hours.

Constructors

Instances

#Duration

class Duration a  where

A class for enabling conversions between duration types.

Members

Instances

#convertDuration

convertDuration :: forall a b. Duration a => Duration b => a -> b

Converts directly between durations of differing types.

#negateDuration

negateDuration :: forall a. Duration a => a -> a

Negates a duration, turning a positive duration negative or a negative duration positive.

Modules