- Support GHC 9.10
- Update package metadata.
- Add
sinceEpoch
andasSeconds
functions
- Allow newer
natural-arithmetic
,primitive
, andvector
. - Allow base 4.18.
- Add units to offset docs.
- Add
decodeShortTextIso8601Zulu
. - Add
decodeUtf8BytesIso8601ZonelessSpaced
.
- Fix February length in
normalYearMonthLength
. Fixes GitHub issue #67. - Support aeson-2.x, with backward compatibility for aeson-1.x.
- Add helper
dateToDayOfWeek
- Add helpers
encode_Ymd
andencode_Dmy
to more easily pretty-print dates - Add various lenses for core data type fields and isos
- Drop support for GHC 8.8 and earlier.
- Dropped support for GHC < 8.6.
- Integrated with
byteverse
libraries andtext-short
, adding efficient builders and parsers targeting UT8-encoded unpinned byte arrays. The new functions are:boundedBuilderUtf8BytesIso8601Zoneless
,encodeShortTextIso8601Zulu
,encodeShortTextIso8601Zoneless
,parserUtf8BytesIso8601
,boundedBuilderUtf8BytesIso8601
,decodeUtf8BytesIso8601
,decodeShortTextIso8601
,decodeShortTextIso8601Zoneless
,decodeUtf8BytesIso8601Zoneless
,encodeShortTextIso8601
. - Corrected an implementation mistake that had caused many parsers to
incorrectly identifier a subseconds part of 0 (i.e.
23:59:17.000
). - Improved layout of cabal file.
- Adds
NFData
typeclass instances for all data types. - Add
encodeIso8601
andbuilderIso8601
. - Soft deprecate
builderW3C
in favor ofbuilderIso8601
. - Fix formatting in cabal file.
- Add
timeToDayOfWeek
,datetimeToDayOfWeek
,todayDayOfWeek
,yesterdayDayOfWeek
, andtomorrowDayOfWeek
. - Remove
stopwatchWith(_)
on GHC 8.6+. - Fix build on 32-bit POSIX systems.
- Drop dependency of
clock
on GHC 8.6+. - Remove
stopwatchWith(_)
on GHC 8.6+. - Deprecate
stopwatchWith(_)
on GHC <8.6. - Fix build on Windows. Thanks @SpaceKitteh for reporting this.
- Add
TimeParts
for custom formatting.
- Allow newer semigroups.
- Fix build on windows. Chronos now builds on windows, macos, and linux. Thanks to @nprindle for the fix/testing and @ShrykerWindgrace for reporting it!
- Add 'TimeInterval' type and related functions.
- Allow newer version of
clock
(==0.7.* ===> >=0.7 && < 0.9) - Build with -Wall
- Build with -O2
- Initial version, w.r.t. CHANGELOG (i.e. there was no changelog before).