[Haskell-cafe] Telling the time
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.
JID: rich at neswold.homeunix.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe