#1550: Data.Time.formatTime "%S" includes fractional seconds
--------------------------------+-------------------------------------------
  Reporter:  guest              |          Owner:                            
      Type:  bug                |         Status:  new                       
  Priority:  normal             |      Milestone:                            
 Component:  libraries (other)  |        Version:  6.6.1                     
  Severity:  normal             |       Keywords:  time library documentation
Difficulty:  Easy (1 hr)        |             Os:  Unknown                   
  Testcase:                     |   Architecture:  Unknown                   
--------------------------------+-------------------------------------------
from the Haddock:
 %S  second, without decimal part, 00 - 60

 Prelude Locale Data.Time> getZonedTime >>= return . formatTime
 defaultTimeLocale "%S"
 Loading package time-1.0 ... linking ... done.
 "32.332216"

 Shouldn't that return just "32" ? Or is there another way of stripping the
 decimals?

 Tested on Ubuntu Feisty Fawn and ghc 6.6

 % ghc-pkg list time
 /usr/lib/ghc-6.6/package.conf:
     time-1.0

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1550>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to