chronos-0.3: A time library, encoding, decoding, and instances

Safe HaskellNone
LanguageHaskell2010

Chronos.Nanoseconds

Contents

Description

Functions that operate on Nanoseconds. All of these functions have trivial implementations and are provided for convenience. This module is intended to be imported qualified.

Synopsis

Arithmetic

From Duration

These functions are at times convenient, but on a fundamental level, all of them except for fromSeconds are incorrect. If we account for leap seconds, we must acknowledge that not all minutes contain 60 seconds. Some contain 61 seconds, and in the future some may contain 59 seconds.