[Haskell-cafe] string to date?
bringert at cs.chalmers.se
Thu Nov 9 14:43:36 EST 2006
Dougal Stanton wrote:
> Quoth Magnus Therning, nevermore,
>> I've been staring my eyes out trying to find a function that converts a
>> string into a ClockTime or CalendarTime. Basically something like C's
>> strptime(3). I can't seem to find anything like it in System.Time,
>> there are function that convert _to_ a string, but nothing that converts
>> _from_ a string it seems. Where should I look?
> The MissingH.Time.ParseDate  module might be what you want. There's
> also one from Bjorn Bringert . I haven't used either though, so I
> can't recommend anything between them.
> : <http://quux.org:70/devel/missingh/html/MissingH-Time-ParseDate.html>
> : <http://www.cs.chalmers.se/~bringert/darcs/parsedate/>
Those two are the same code. I have a preliminary new version which can
also parse most of the types from the time package (Data.Time.*)
More information about the Haskell-Cafe