hodatime-0.1.1.1: A fully featured date/time library based on Nodatime

Copyright (C) 2016 Jason Johnson BSD-style (see the file LICENSE) Jason Johnson experimental TBD Safe Haskell2010

Data.HodaTime.Duration

Contents

Description

A Duration is fixed period of time between global times.

Synopsis

# Types

data Duration Source #

Represents a duration of time between instants. It can be from days to nanoseconds, but anything longer is not representable by a duration because e.g. Months are calendar specific concepts.

Instances

 Source # Methods Source # MethodsshowList :: [Duration] -> ShowS #

# Constructors

Duration of standard weeks (a standard week is assumed to be exactly 7 24 hour days)

Duration of standard days (a standard day is assumed to be exactly 24 hours)

Duration of hours

Duration of minutes

Duration of seconds

Duration of milliseconds

Duration of microseconds

Duration of nanoseconds

# Math

Add two durations together

Subtract one duration from the other