[Haskell-cafe] formatTime %Q not working

Bit Connor bit at mutantlemon.com
Thu Jun 21 10:39:12 EDT 2007


I am using ghc 6.6. I am using the formatTime function from Data.Time.Format.

The docs say that the %Q format string gives: "decimal point and up to
12 second decimals, without trailing zeros."

But I always just get an empty string. Here is what happens when I try
using ghci:

> now <- getCurrentTime
2007-06-21 13:48:44.298699 UTC
> formatTime defaultTimeLocale "%s" now
> formatTime defaultTimeLocale "%Q" now

"%q" also always gives me an empty string.

Is this a bug?


More information about the Haskell-Cafe mailing list