-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Useful timespan datatype and functions
--   
--   A data type for time spans with some useful utility functions
@package timespan
@version 0.3.0.0

module Data.Time.TimeSpan

-- | An abstract timespan. Use the provided smart constructors to create a
--   meaningful timespan. Note that on first sight a <a>Num</a> instance
--   might seem desirable, but this would defeat the purpose of having
--   transparent and explicitly constructed timespans due to
--   <a>fromInteger</a>.
data TimeSpan
milliseconds :: Double -> TimeSpan
seconds :: Double -> TimeSpan
minutes :: Double -> TimeSpan
hours :: Double -> TimeSpan
days :: Double -> TimeSpan
weeks :: Double -> TimeSpan
toMicroseconds :: TimeSpan -> Double
toMilliseconds :: TimeSpan -> Double
toSeconds :: TimeSpan -> Double
toMinutes :: TimeSpan -> Double
toHours :: TimeSpan -> Double
toDays :: TimeSpan -> Double
toWeeks :: TimeSpan -> Double
absTS :: TimeSpan -> TimeSpan
multiplyTS :: TimeSpan -> Double -> TimeSpan
diffUTCTimeTS :: UTCTime -> UTCTime -> TimeSpan
addUTCTimeTS :: TimeSpan -> UTCTime -> UTCTime
subUTCTimeTS :: TimeSpan -> UTCTime -> UTCTime
sleepTS :: TimeSpan -> IO ()
timeoutTS :: TimeSpan -> IO a -> IO (Maybe a)
timeAction :: IO a -> IO (TimeSpan, a)
instance GHC.Classes.Ord Data.Time.TimeSpan.TimeSpan
instance GHC.Classes.Eq Data.Time.TimeSpan.TimeSpan
instance GHC.Show.Show Data.Time.TimeSpan.TimeSpan
instance GHC.Base.Monoid Data.Time.TimeSpan.TimeSpan
