hourglass 0.2.4 → 0.2.5
raw patch · 2 files changed
+5/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Hourglass/Internal/Win.hs +4/−2
- hourglass.cabal +1/−1
Data/Hourglass/Internal/Win.hs view
@@ -48,14 +48,16 @@ where toDateTime (SYSTEMTIME wY wM _ wD wH wMin wS _) = DateTime (Date (fi wY) (toEnum $ fi $ wM - 1) (fi wD)) (TimeOfDay (fi wH) (fi wMin) (fi wS) ns)- fi = fromIntegral+ fi :: (Integral a, Num b) => a -> b+ fi x = fromIntegral x dateTimeFromUnixEpoch :: Elapsed -> DateTime dateTimeFromUnixEpoch e = toDateTime $ callSystemTime e where toDateTime (SYSTEMTIME wY wM _ wD wH wMin wS _) = DateTime (Date (fi wY) (toEnum $ fi $ wM - 1) (fi wD)) (TimeOfDay (fi wH) (fi wMin) (fi wS) 0)- fi = fromIntegral+ fi :: (Integral a, Num b) => a -> b+ fi x = fromIntegral x systemGetTimezone :: IO TimezoneOffset systemGetTimezone = do
hourglass.cabal view
@@ -1,5 +1,5 @@ Name: hourglass-Version: 0.2.4+Version: 0.2.5 Synopsis: simple performant time related library Description: Simple time library focusing on simple but powerful and performant API