formatTime %Q not working

Hello, 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 "1182433724" formatTime defaultTimeLocale "%Q" now ""
"%q" also always gives me an empty string. Is this a bug? Thanks, Bit

On Thu, Jun 21, 2007 at 05:39:12PM +0300, Bit Connor wrote:
now <- getCurrentTime 2007-06-21 13:48:44.298699 UTC formatTime defaultTimeLocale "%s" now "1182433724" formatTime defaultTimeLocale "%Q" now ""
"%q" also always gives me an empty string.
It seems to work OK for me with GHC 6.6.1 and time 1.1.1. Can you please give a complete testcase, and say which version of time you are using and where you got it from? Thanks Ian
participants (2)
-
Bit Connor
-
Ian Lynagh