Module

Data.Time.Duration

Package
purescript-datetime
Repository
purescript/purescript-datetime

#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 b a. Duration a => Duration b => a -> b

Converts directly between durations of differing types.