Skip to content
Snippets Groups Projects
Unverified Commit 773b8c44 authored by Ashley Yakeley's avatar Ashley Yakeley Committed by GitHub
Browse files

Merge pull request #112 from theindigamer/add-small-example

Add small example to documentation for NominalDiffTime.
parents a3480984 066a731e
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ import Control.DeepSeq ...@@ -17,6 +17,7 @@ import Control.DeepSeq
-- | This is a length of time, as measured by UTC. -- | This is a length of time, as measured by UTC.
-- Conversion functions will treat it as seconds. -- Conversion functions will treat it as seconds.
-- For example, @(0.010 :: NominalDiffTime)@ corresponds to 10 milliseconds.
-- It has a precision of 10^-12 s. -- It has a precision of 10^-12 s.
-- It ignores leap-seconds, so it's not necessarily a fixed amount of clock time. -- It ignores leap-seconds, so it's not necessarily a fixed amount of clock time.
-- For instance, 23:00 UTC + 2 hours of NominalDiffTime = 01:00 UTC (+ 1 day), -- For instance, 23:00 UTC + 2 hours of NominalDiffTime = 01:00 UTC (+ 1 day),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment