cassava icon indicating copy to clipboard operation
cassava copied to clipboard

add instances for UTCTime

Open knupfer opened this issue 9 years ago • 4 comments

Time series are very frequent in statistics and therfore frequent in csv.

knupfer avatar Jan 30 '16 16:01 knupfer

+1

I also found myself wanting to parse timestamp fields.

Perhaps a nice workaround might be to give a way to lift general attoparsec Parsers into Cassava parsers; then I could just reuse the timestamp parsers from something like timeparsers when parsing my timestamps rather than relying on Cassava to have them or reimplementing them myself.

rampion avatar Jun 17 '16 17:06 rampion

Is this related to #68?

ivan-m avatar Jul 05 '17 11:07 ivan-m

I just ran into this as well. @hvr would you accept to import time and/or timeparsers and provide FromField/ToField instances of Day etc. ?

ocramz avatar Feb 25 '18 12:02 ocramz

There's a PR for this already: https://github.com/haskell-hvr/cassava/pull/151

ocramz avatar Feb 25 '18 12:02 ocramz