Module

Data.Time.Duration

Package
purescript-datetime
Repository
purescript/purescript-datetime

#Seconds Source

#Minutes Source

#Hours Source

newtype Hours

A duration measured in hours.

Constructors

Instances

#Days Source

newtype Days

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

Constructors

Instances

#Duration Source

class Duration a  where

A class for enabling conversions between duration types.

Members

Instances

#convertDuration Source

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

Converts directly between durations of differing types.

#negateDuration Source

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

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