pact-time 0.3.0.0 → 0.3.0.1
raw patch · 5 files changed
+13/−9 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- pact-time.cabal +5/−5
- src/Pact/Time.hs +1/−1
- src/Pact/Time/Format/External.hs +2/−2
- test/Test/Pact/Time/Format.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for pact-time +## 0.3.0.1 -- 2024-07-01++* Update documentation links to the Pact language specification.+ ## 0.3.0.0 -- 2024-06-30 Breaking changes:
pact-time.cabal view
@@ -1,22 +1,22 @@ cabal-version: 3.0 name: pact-time-version: 0.3.0.0+version: 0.3.0.1 synopsis: Time Library for Pact Description: A minimal time library for usage with the [Pact Smart Contract Language](https://github.com/kadena-io/pact/).- .+ The focus of this library is on minimality, performance, and binary level stability. Time is represented as 64-bit integral value that counts nominal micro-seconds since the modified Julian date epoch (MJD). The implementation ignores leap seconds.- .+ While the library can parse date-time values with time zones, internally all date-times are represented as UTC and formatting only supports UTC. Only the default English language locale is supported.- .+ Details about supported formats can be found in the [Pact Language- Reference](https://pact-language.readthedocs.io/en/stable/pact-reference.html#time-formats).+ Reference](https://docs.kadena.io/reference/functions/time). homepage: https://github.com/kadena-io/pact-time bug-reports: https://github.com/kadena-io/pact-time/issues
src/Pact/Time.hs view
@@ -20,7 +20,7 @@ -- default English language locale is supported. -- -- Details about supported formats can be found in the [Pact Language--- Reference](https://pact-language.readthedocs.io/en/stable/pact-reference.html#time-formats).+-- Reference](https://docs.kadena.io/reference/functions/time). -- module Pact.Time (
src/Pact/Time/Format/External.hs view
@@ -49,7 +49,7 @@ -- | Parse a 'UTCTime' using the supplied format string. -- -- Please refer to the [Pact Language--- Reference](https://pact-language.readthedocs.io/en/stable/pact-reference.html#time-formats) for details on the+-- Reference](https://docs.kadena.io/reference/functions/time) for details on the -- supported format strings. -- #if MIN_VERSION_time(1,9,0)@@ -63,7 +63,7 @@ -- | Format a 'UTCTime' value using the supplied format string. -- -- Please refer to the [Pact Language--- Reference](https://pact-language.readthedocs.io/en/stable/pact-reference.html#time-formats) for details on the+-- Reference](https://docs.kadena.io/reference/functions/time) for details on the -- supported format strings. -- formatTime :: String -> UTCTime -> String
test/Test/Pact/Time/Format.hs view
@@ -168,7 +168,7 @@ , ("46", "%W", "week of year where weeks start on Monday, 0-padded to two chars, \"00\"–\"53\"") ] --- | https://pact-language.readthedocs.io/en/stable/pact-reference.html#time-formats+-- | https://docs.kadena.io/reference/functions/time#time-formatsh717561948 -- -- Can be used as a tempalte to define new test cases --