[commit: packages/time] master: Change "accuracy" to "precision". (cc3dae0)

git at git.haskell.org git at git.haskell.org
Fri Jan 23 22:58:57 UTC 2015


Repository : ssh://git@git.haskell.org/time

On branch  : master
Link       : http://git.haskell.org/packages/time.git/commitdiff/cc3dae057e2bdcd8423b8beb9b46d2651e114de7

>---------------------------------------------------------------

commit cc3dae057e2bdcd8423b8beb9b46d2651e114de7
Author: Alexander Dunlap <alexander.dunlap at gmail.com>
Date:   Tue Jul 29 11:37:58 2008 -0700

    Change "accuracy" to "precision".
    
    See <http://www.haskell.org/pipermail/libraries/2008-July/010290.html>.
    
    darcs-hash:20080729183758-e80da-955fe221e10854ee27e143cdb282caae7c010d33


>---------------------------------------------------------------

cc3dae057e2bdcd8423b8beb9b46d2651e114de7
 Data/Time/Clock/Scale.hs | 2 +-
 Data/Time/Clock/UTC.hs   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Data/Time/Clock/Scale.hs b/Data/Time/Clock/Scale.hs
index 053c515..cb3fbee 100644
--- a/Data/Time/Clock/Scale.hs
+++ b/Data/Time/Clock/Scale.hs
@@ -21,7 +21,7 @@ newtype UniversalTime = ModJulianDate {getModJulianDate :: Rational} deriving (E
 
 -- | This is a length of time, as measured by a clock.
 -- Conversion functions will treat it as seconds.
--- It has an accuracy of 10^-12 s.
+-- It has a precision of 10^-12 s.
 newtype DiffTime = MkDiffTime Pico deriving (Eq,Ord)
 
 -- necessary because H98 doesn't have "cunning newtype" derivation
diff --git a/Data/Time/Clock/UTC.hs b/Data/Time/Clock/UTC.hs
index 57daa6b..a76a805 100644
--- a/Data/Time/Clock/UTC.hs
+++ b/Data/Time/Clock/UTC.hs
@@ -39,7 +39,7 @@ instance Ord UTCTime where
 
 -- | This is a length of time, as measured by UTC.
 -- Conversion functions will treat it as seconds.
--- It has an accuracy 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.
 -- For instance, 23:00 UTC + 2 hours of NominalDiffTime = 01:00 UTC (+ 1 day),
 -- regardless of whether a leap-second intervened.



More information about the ghc-commits mailing list