packages/time.git
5 months agoClean up documentation
Ashley Yakeley [Fri, 15 Mar 2019 08:08:44 +0000 (01:08 -0700)] 
Clean up documentation

5 months agoMerge pull request #112 from theindigamer/add-small-example
Ashley Yakeley [Fri, 15 Mar 2019 03:13:28 +0000 (20:13 -0700)] 
Merge pull request #112 from theindigamer/add-small-example

Add small example to documentation for NominalDiffTime.

5 months agoMerge pull request #108 from nh2/issue-106-docs-add-posix-nanos-example
Ashley Yakeley [Fri, 15 Mar 2019 03:13:00 +0000 (20:13 -0700)] 
Merge pull request #108 from nh2/issue-106-docs-add-posix-nanos-example

haddocks: Example how to obtain POSIX int timestamps.

5 months agoMerge pull request #105 from nh2/patch-1
Ashley Yakeley [Fri, 15 Mar 2019 03:11:39 +0000 (20:11 -0700)] 
Merge pull request #105 from nh2/patch-1

POSIX: Fix haddock links

6 months agoAdd small example to documentation for NominalDiffTime.
theindigamer [Sun, 10 Feb 2019 20:43:55 +0000 (15:43 -0500)] 
Add small example to documentation for NominalDiffTime.

This also makes it immediately obvious how one can create a value of the type
out of thin air without crawling through the source code of the type class
instances.

8 months agohaddocks: Example how to obtain POSIX int timestamps. Fixes #106
Niklas Hambüchen [Thu, 22 Nov 2018 17:54:04 +0000 (18:54 +0100)] 
haddocks: Example how to obtain POSIX int timestamps. Fixes #106

10 months agoPOSIX: Fix haddock links
Niklas Hambüchen [Fri, 5 Oct 2018 02:26:19 +0000 (04:26 +0200)] 
POSIX: Fix haddock links

You can't link to `System.Posix.EpochTime` since that module isn't imported, haddock will link it into nirvana.

`Foreign.C.CTime` didn't work because that just leads to e.g.
  http://hackage.haskell.org/package/base-4.11.1.0/docs/Foreign-C.html#v:CTime
which doesn't contain the function.

12 months agofix a GHC version check
Ashley Yakeley [Wed, 1 Aug 2018 05:08:31 +0000 (22:08 -0700)] 
fix a GHC version check

12 months agofullcheck script builds with multiple resolvers
Ashley Yakeley [Wed, 1 Aug 2018 01:58:59 +0000 (18:58 -0700)] 
fullcheck script builds with multiple resolvers

12 months agoget building with earlier GHC versions
Ashley Yakeley [Wed, 1 Aug 2018 01:58:25 +0000 (18:58 -0700)] 
get building with earlier GHC versions

12 months agoGet building with lts-12
Ashley Yakeley [Wed, 1 Aug 2018 01:17:14 +0000 (18:17 -0700)] 
Get building with lts-12

12 months agoMerge branch 'master' of github.com:haskell/time
Ashley Yakeley [Tue, 31 Jul 2018 22:26:05 +0000 (15:26 -0700)] 
Merge branch 'master' of github.com:haskell/time

12 months agomark additional @since
Ashley Yakeley [Tue, 31 Jul 2018 21:51:41 +0000 (14:51 -0700)] 
mark additional @since

12 months agoMerge pull request #103 from bgamari/master
Ashley Yakeley [Tue, 31 Jul 2018 21:48:14 +0000 (14:48 -0700)] 
Merge pull request #103 from bgamari/master

Compatibility with GHC 8.6.1

12 months agoset version to 1.9.2
Ashley Yakeley [Tue, 31 Jul 2018 21:31:28 +0000 (14:31 -0700)] 
set version to 1.9.2

12 months agoMerge pull request #102 from mgsloan/patch-1
Ashley Yakeley [Tue, 31 Jul 2018 20:14:42 +0000 (13:14 -0700)] 
Merge pull request #102 from mgsloan/patch-1

Add 'since' haddock annotations to seconds <-> NominalDiffTime conversions

12 months agoCompatibility with GHC 8.6.1
Ben Gamari [Tue, 31 Jul 2018 20:00:55 +0000 (16:00 -0400)] 
Compatibility with GHC 8.6.1

These imports of Data.Semigroup are redundant under base-4.12.0.0.

12 months agoAdd 'since' haddock annotations to seconds <-> NominalDiffTime conversions
Michael Sloan [Sat, 28 Jul 2018 02:58:30 +0000 (19:58 -0700)] 
Add 'since' haddock annotations to seconds <-> NominalDiffTime conversions

14 months agochangelog: new instances etc.
Ashley Yakeley [Sun, 27 May 2018 20:17:04 +0000 (13:17 -0700)] 
changelog: new instances etc.

14 months agoMerge pull request #96 from ttuegel/data-instances
Ashley Yakeley [Sun, 27 May 2018 20:15:00 +0000 (13:15 -0700)] 
Merge pull request #96 from ttuegel/data-instances

Data instances for CalendarDiffDays and CalendarDiffTime

14 months agoCalendarDiffTime: derive Data and Typeable
Thomas Tuegel [Sun, 27 May 2018 16:31:28 +0000 (11:31 -0500)] 
CalendarDiffTime: derive Data and Typeable

14 months agoCalendarDiffDays: derive Data and Typeable
Thomas Tuegel [Sun, 27 May 2018 16:31:11 +0000 (11:31 -0500)] 
CalendarDiffDays: derive Data and Typeable

17 months agoUse lts-10.7
Ashley Yakeley [Mon, 26 Feb 2018 20:58:28 +0000 (12:58 -0800)] 
Use lts-10.7

17 months agoupdate Checklist
Ashley Yakeley [Mon, 26 Feb 2018 08:45:55 +0000 (00:45 -0800)] 
update Checklist

17 months agoupdate changelog
Ashley Yakeley [Mon, 26 Feb 2018 08:45:36 +0000 (00:45 -0800)] 
update changelog

17 months agoData.Time.Format.Internal, exposing FormatTime and ParseTime (#88)
Ashley Yakeley [Mon, 26 Feb 2018 08:40:04 +0000 (00:40 -0800)] 
Data.Time.Format.Internal, exposing FormatTime and ParseTime (#88)

17 months agoAdd secondsToNominalDiffTime and nominalDiffTimeToSeconds (#86)
Ashley Yakeley [Mon, 26 Feb 2018 06:00:46 +0000 (22:00 -0800)] 
Add secondsToNominalDiffTime and nominalDiffTimeToSeconds (#86)

17 months agoremove cruft for Hugs and GHC < 7.8, which we don't support
Ashley Yakeley [Mon, 26 Feb 2018 05:37:20 +0000 (21:37 -0800)] 
remove cruft for Hugs and GHC < 7.8, which we don't support

17 months agochangelog 1.9.1
Ashley Yakeley [Mon, 26 Feb 2018 03:35:55 +0000 (19:35 -0800)] 
changelog 1.9.1

17 months agoSet version numbers to 1.9.1
Ashley Yakeley [Mon, 26 Feb 2018 03:35:25 +0000 (19:35 -0800)] 
Set version numbers to 1.9.1

18 months agoISO8601: improve haddock
Ashley Yakeley [Thu, 25 Jan 2018 07:56:11 +0000 (23:56 -0800)] 
ISO8601: improve haddock

18 months agoISO 8601: more tests (#40)
Ashley Yakeley [Thu, 25 Jan 2018 04:02:08 +0000 (20:02 -0800)] 
ISO 8601: more tests (#40)

18 months agoISO 8601: fix timeOffsetFormat bug, also more tests (#40)
Ashley Yakeley [Thu, 25 Jan 2018 03:23:42 +0000 (19:23 -0800)] 
ISO 8601: fix timeOffsetFormat bug, also more tests (#40)

18 months agoData.Format: slight doc change
Ashley Yakeley [Wed, 24 Jan 2018 11:08:06 +0000 (03:08 -0800)] 
Data.Format: slight doc change

18 months agoISO 8601: add ISO8601 class for common formats
Ashley Yakeley [Wed, 24 Jan 2018 11:07:06 +0000 (03:07 -0800)] 
ISO 8601: add ISO8601 class for common formats

18 months agoIOS 8601: add zonedTimeFormat and utcTimeFormat; more tests (#40)
Ashley Yakeley [Wed, 24 Jan 2018 10:48:46 +0000 (02:48 -0800)] 
IOS 8601: add zonedTimeFormat and utcTimeFormat; more tests (#40)

18 months agochangelog: mention ISO8601 module (#40)
Ashley Yakeley [Wed, 24 Jan 2018 09:05:56 +0000 (01:05 -0800)] 
changelog: mention ISO8601 module (#40)

18 months agofix build errors
Ashley Yakeley [Wed, 24 Jan 2018 08:47:49 +0000 (00:47 -0800)] 
fix build errors

18 months agofix build warning
Ashley Yakeley [Wed, 24 Jan 2018 08:31:09 +0000 (00:31 -0800)] 
fix build warning

18 months agoTravis: use -Werror (#84)
Ashley Yakeley [Wed, 24 Jan 2018 08:17:04 +0000 (00:17 -0800)] 
Travis: use -Werror (#84)

18 months agoISO 8601 for CalendarDiffTime: tests, bug fix (#40)
Ashley Yakeley [Wed, 24 Jan 2018 06:49:19 +0000 (22:49 -0800)] 
ISO 8601 for CalendarDiffTime: tests, bug fix (#40)

18 months agonew module for ISO 8601 format (#40)
Ashley Yakeley [Wed, 24 Jan 2018 06:13:23 +0000 (22:13 -0800)] 
new module for ISO 8601 format (#40)

19 months agoformatting/parsing time differences: swap upper/lower case of specifiers (#22)
Ashley Yakeley [Fri, 19 Jan 2018 05:09:59 +0000 (21:09 -0800)] 
formatting/parsing time differences: swap upper/lower case of specifiers (#22)

19 months agofix "%s" format leap-second test issue (#83)
Ashley Yakeley [Fri, 19 Jan 2018 03:28:39 +0000 (19:28 -0800)] 
fix "%s" format leap-second test issue (#83)

19 months agoremove old haddock cruft
Ashley Yakeley [Fri, 19 Jan 2018 01:48:36 +0000 (17:48 -0800)] 
remove old haddock cruft

19 months agofix build for GHC 7.8
Ashley Yakeley [Fri, 19 Jan 2018 01:44:36 +0000 (17:44 -0800)] 
fix build for GHC 7.8

19 months agoformatTime: fix haddock
Ashley Yakeley [Thu, 18 Jan 2018 23:51:11 +0000 (15:51 -0800)] 
formatTime: fix haddock

19 months agohide members of FormatTime and ParseTime classes;
Ashley Yakeley [Thu, 18 Jan 2018 22:54:18 +0000 (14:54 -0800)] 
hide members of FormatTime and ParseTime classes;
parsing for diff types (#22)

19 months agoFormat: fix haddock
Ashley Yakeley [Tue, 16 Jan 2018 09:46:59 +0000 (01:46 -0800)] 
Format: fix haddock

19 months agorename CalenderDiffDays and CalendarDiffTime fields
Ashley Yakeley [Tue, 16 Jan 2018 09:36:52 +0000 (01:36 -0800)] 
rename CalenderDiffDays and CalendarDiffTime fields

19 months agoformatting: diff types (NominalDiffTime, DiffTime, CalendarDiffDays, CalendarDiffTime...
Ashley Yakeley [Tue, 16 Jan 2018 09:30:55 +0000 (01:30 -0800)] 
formatting: diff types (NominalDiffTime, DiffTime, CalendarDiffDays, CalendarDiffTime) (#22)

19 months agoAdd types to "Quick Start" haddock (#82), fix some other haddock.
Ashley Yakeley [Tue, 16 Jan 2018 01:46:51 +0000 (17:46 -0800)] 
Add types to "Quick Start" haddock (#82), fix some other haddock.

19 months agonew CalendarDiffTime type, with Show and Read for ISO 8601 format (#40)
Ashley Yakeley [Mon, 15 Jan 2018 22:58:29 +0000 (14:58 -0800)] 
new CalendarDiffTime type, with Show and Read for ISO 8601 format (#40)

19 months agoCalendarDiffDays: Read and Show haddock
Ashley Yakeley [Mon, 15 Jan 2018 07:44:27 +0000 (23:44 -0800)] 
CalendarDiffDays: Read and Show haddock

19 months agoinstance Read CalendarDiffDays
Ashley Yakeley [Mon, 15 Jan 2018 07:40:53 +0000 (23:40 -0800)] 
instance Read CalendarDiffDays

19 months agonew conversion functions timeToDaysAndTimeOfDay & daysAndTimeOfDayToTime
Ashley Yakeley [Mon, 15 Jan 2018 03:18:46 +0000 (19:18 -0800)] 
new conversion functions timeToDaysAndTimeOfDay & daysAndTimeOfDayToTime

19 months agorename CalendarDuration to CalendarDiffDays
Ashley Yakeley [Sat, 13 Jan 2018 05:02:49 +0000 (21:02 -0800)] 
rename CalendarDuration to CalendarDiffDays

19 months agonew addLocalTime, diffLocalTime
Ashley Yakeley [Sat, 13 Jan 2018 03:20:23 +0000 (19:20 -0800)] 
new addLocalTime, diffLocalTime

19 months agostack.yaml: add command-line options and more warnings.
Ashley Yakeley [Fri, 12 Jan 2018 10:20:33 +0000 (02:20 -0800)] 
stack.yaml: add command-line options and more warnings.
Fix Semigroup/Monoid issue.

19 months agonew CalendarDuration type (for #40)
Ashley Yakeley [Fri, 12 Jan 2018 06:47:04 +0000 (22:47 -0800)] 
new CalendarDuration type (for #40)

19 months agochangelog: fix entry
Ashley Yakeley [Thu, 11 Jan 2018 10:08:20 +0000 (02:08 -0800)] 
changelog: fix entry

19 months agoformatting: %Ez and %EZ for ±HH:MM format (#52)
Ashley Yakeley [Thu, 11 Jan 2018 02:27:02 +0000 (18:27 -0800)] 
formatting: %Ez and %EZ for ±HH:MM format (#52)

19 months agoparsing: reject invalid hour/minute/second specifiers (#70)
Ashley Yakeley [Wed, 10 Jan 2018 09:29:05 +0000 (01:29 -0800)] 
parsing: reject invalid hour/minute/second specifiers (#70)

19 months agoparsing: reject invalid (and empty) time-zones with %z and %Z (#75)
Ashley Yakeley [Wed, 10 Jan 2018 09:09:13 +0000 (01:09 -0800)] 
parsing: reject invalid (and empty) time-zones with %z and %Z (#75)

19 months agoChecklist: hide test successes in builds
Ashley Yakeley [Wed, 10 Jan 2018 03:05:02 +0000 (19:05 -0800)] 
Checklist: hide test successes in builds

19 months agoinstance FormatTime DayOfWeek (with test)
Ashley Yakeley [Wed, 10 Jan 2018 02:42:00 +0000 (18:42 -0800)] 
instance FormatTime DayOfWeek (with test)

19 months agohaddock: instance Enum DayOfWeek: fix
Ashley Yakeley [Wed, 10 Jan 2018 02:10:06 +0000 (18:10 -0800)] 
haddock: instance Enum DayOfWeek: fix

19 months agomake Week a private module
Ashley Yakeley [Wed, 10 Jan 2018 02:06:45 +0000 (18:06 -0800)] 
make Week a private module

19 months agonew Data.Week module with DayOfWeek type (#69)
Ashley Yakeley [Wed, 10 Jan 2018 01:45:10 +0000 (17:45 -0800)] 
new Data.Week module with DayOfWeek type (#69)

19 months ago.hindent.yaml (not that we use it)
Ashley Yakeley [Tue, 9 Jan 2018 22:00:24 +0000 (14:00 -0800)] 
.hindent.yaml (not that we use it)

19 months agoversion 1.9
Ashley Yakeley [Tue, 9 Jan 2018 21:52:42 +0000 (13:52 -0800)] 
version 1.9

19 months agoparseTimeM: use MonadFail where possible (#79)
Ashley Yakeley [Tue, 9 Jan 2018 07:45:27 +0000 (23:45 -0800)] 
parseTimeM: use MonadFail where possible (#79)

19 months agotest: fix minBound test for 32 bit
Ashley Yakeley [Tue, 9 Jan 2018 00:46:26 +0000 (16:46 -0800)] 
test: fix minBound test for 32 bit

19 months agoupdate Checklist
Ashley Yakeley [Mon, 8 Jan 2018 23:39:54 +0000 (15:39 -0800)] 
update Checklist

19 months agofix .gitignore
Ashley Yakeley [Mon, 8 Jan 2018 23:26:13 +0000 (15:26 -0800)] 
fix .gitignore

19 months agodoc: parseTimeM: correct example
Ashley Yakeley [Mon, 8 Jan 2018 23:08:02 +0000 (15:08 -0800)] 
doc: parseTimeM: correct example

19 months agogitignore conftest.*
Ashley Yakeley [Mon, 8 Jan 2018 22:39:41 +0000 (14:39 -0800)] 
gitignore conftest.*

19 months agotravis: switch from 8.2.1 to 8.2.2
Ashley Yakeley [Mon, 8 Jan 2018 22:38:12 +0000 (14:38 -0800)] 
travis: switch from 8.2.1 to 8.2.2

19 months agoupdate to latest LTS
Ashley Yakeley [Mon, 8 Jan 2018 22:36:54 +0000 (14:36 -0800)] 
update to latest LTS

19 months agoupdate changelog
Ashley Yakeley [Mon, 8 Jan 2018 22:35:33 +0000 (14:35 -0800)] 
update changelog

19 months agoMerge pull request #78 from saurabhnanda/patch-1
Ashley Yakeley [Mon, 8 Jan 2018 10:21:36 +0000 (02:21 -0800)] 
Merge pull request #78 from saurabhnanda/patch-1

Added an example for parseTimeM

19 months agoRemoved the cautionary paragraph
Saurabh Nanda [Mon, 8 Jan 2018 06:25:31 +0000 (11:55 +0530)] 
Removed the cautionary paragraph

19 months agoupdate version and Checklist
Ashley Yakeley [Sun, 7 Jan 2018 22:00:47 +0000 (14:00 -0800)] 
update version and Checklist

19 months agoGet working with lts-10
Ashley Yakeley [Sun, 7 Jan 2018 21:31:43 +0000 (13:31 -0800)] 
Get working with lts-10

19 months agofix show minBound (issue #77)
Ashley Yakeley [Sun, 7 Jan 2018 08:14:51 +0000 (00:14 -0800)] 
fix show minBound (issue #77)

19 months agoAdded cautionary note against using parseTimeM in Either monad
Saurabh Nanda [Sun, 7 Jan 2018 03:09:43 +0000 (08:39 +0530)] 
Added cautionary note against using parseTimeM in Either monad

19 months agoAdded an example for parseTimeM
Saurabh Nanda [Thu, 4 Jan 2018 13:52:10 +0000 (19:22 +0530)] 
Added an example for parseTimeM

It wasn't very clear how to parse date/month with optional `0` padding.

21 months agostack.yaml: lts-9.12
Ashley Yakeley [Tue, 7 Nov 2017 20:09:59 +0000 (12:09 -0800)] 
stack.yaml: lts-9.12

2 years agoVersion 1.8.0.3, and changelog
Ashley Yakeley [Fri, 4 Aug 2017 00:15:31 +0000 (17:15 -0700)] 
Version 1.8.0.3, and changelog

2 years agoQuick start documentation
Ashley Yakeley [Fri, 4 Aug 2017 00:08:44 +0000 (17:08 -0700)] 
Quick start documentation

2 years agostack: lts-9.0
Ashley Yakeley [Thu, 3 Aug 2017 23:58:49 +0000 (16:58 -0700)] 
stack: lts-9.0

2 years agotime.cabal: fix for latest "cabal check"
Ashley Yakeley [Thu, 3 Aug 2017 23:33:42 +0000 (16:33 -0700)] 
time.cabal: fix for latest "cabal check"

2 years agoChecklist: return to master branch when done
Ashley Yakeley [Thu, 3 Aug 2017 23:32:09 +0000 (16:32 -0700)] 
Checklist: return to master branch when done

2 years agotravis: test with CABALVER=2.0 GHCVER=8.2.1
Ashley Yakeley [Thu, 3 Aug 2017 23:24:37 +0000 (16:24 -0700)] 
travis: test with CABALVER=2.0 GHCVER=8.2.1

2 years agoTravis: GHC 8.0.2 build 1.8.0.2
Ashley Yakeley [Sat, 13 May 2017 20:25:51 +0000 (13:25 -0700)] 
Travis: GHC 8.0.2 build

2 years agostack.yaml: updated to latest resolver
Ashley Yakeley [Sat, 13 May 2017 20:01:57 +0000 (13:01 -0700)] 
stack.yaml: updated to latest resolver

2 years agoversion 1.8.0.2
Ashley Yakeley [Sat, 13 May 2017 20:00:07 +0000 (13:00 -0700)] 
version 1.8.0.2

2 years agoFormat: update comment on %Q specifier
Ashley Yakeley [Sat, 13 May 2017 19:23:28 +0000 (12:23 -0700)] 
Format: update comment on %Q specifier

2 years agoMerge branch 'master' of github.com:haskell/time
Ashley Yakeley [Sat, 13 May 2017 10:36:34 +0000 (03:36 -0700)] 
Merge branch 'master' of github.com:haskell/time

2 years agofix format behaviour of %Q
Ashley Yakeley [Sat, 13 May 2017 10:36:21 +0000 (03:36 -0700)] 
fix format behaviour of %Q