[Haskell-cafe] Re: Can't do basic time operations with System.Time

Simon Marlow simonmar at microsoft.com
Wed Jan 26 07:20:14 EST 2005


On 25 January 2005 17:17, John Goerzen wrote:

> On Tue, Jan 25, 2005 at 03:15:38PM -0000, Simon Marlow wrote:
>> normalizeTimeDiff (and TimeDiff in general) is wrong.  I wouldn't
>> recommend using it.  There's the TimeExts library in the lang
>> package, which might be useful to you.
> 
> I'm curious about that package.  It's in my ghc source tree but not
> documented at
> http://www.haskell.org/ghc/docs/latest/html/libraries/index.html.
> 
> Is it assumed to be portable and available outside ghc?

It's an old non-hierarchical library, unfortunately with no
documentation.  It'll probably disappear in GHC 6.6, but you can always
take the source and use it in your apps.  Hopefully by 6.6 there will be
a decent date/time library that provides this functionality.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list