[Haskell-cafe] Telling the time

Rich Neswold rich.neswold at gmail.com
Thu Jun 21 17:11:48 EDT 2007


On 6/21/07, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
>
> Is there a standard library function anywhere which will parse a string
> into some kind of date/time representation?


In Data.Time.Format, there's parseTime. parseTime takes a format string that
describes the layout. Since you have varying layouts in your files
(hopefully consistent in the same file!), you simply change the format
string for each file.

-- 
Rich

JID: rich at neswold.homeunix.net
AIM: rnezzy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070621/06c84cc5/attachment.htm


More information about the Haskell-Cafe mailing list