Module

Data.Time.Duration

Package
purescript-datetime
Repository
purescript/purescript-datetime

#HoursSource

newtype Hours

A duration measured in hours.

Constructors

Instances

#DaysSource

newtype Days

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

Constructors

Instances

#DurationSource

class Duration a  where

A class for enabling conversions between duration types.

Members

Instances

#convertDurationSource

convertDuration :: forall a b. (Duration a, Duration b) => a -> b

Converts directly between durations of differing types.