hourglass 0.2.1 → 0.2.2
raw patch · 3 files changed
+14/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +10/−0
- System/Hourglass.hs +3/−2
- hourglass.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,13 @@+## Version 0.2.2 (11 Jun 2014)++- wrap system time in local time correctly++## Version 0.2.1 (10 Jun 2014)++- unwrap local time structure when doing a localTimePrint+- properly show hours, minutes and seconds in format print.+- add some description of new calls.+ ## Version 0.2.0 (3 Jun 2014) - use tasty to replace test-framework
System/Hourglass.hs view
@@ -44,11 +44,12 @@ -- | Get the localized date by using 'timezoneCurrent' and 'dateCurrent' localDateCurrent :: IO (LocalTime DateTime)-localDateCurrent = localTime <$> timezoneCurrent <*> dateCurrent+localDateCurrent = localTimeSetTimezone <$> timezoneCurrent+ <*> (localTimeFromGlobal <$> dateCurrent) -- | Get the localized date at a specific timezone offset. localDateCurrentAt :: TimezoneOffset -> IO (LocalTime DateTime)-localDateCurrentAt tz = localTime tz <$> dateCurrent+localDateCurrentAt tz = localTimeSetTimezone tz . localTimeFromGlobal <$> dateCurrent -- | Get the current timezone offset --
hourglass.cabal view
@@ -1,5 +1,5 @@ Name: hourglass-Version: 0.2.1+Version: 0.2.2 Synopsis: simple performant time related library Description: Simple time library focusing on simple but powerful and performant API