Ticket #1550 (closed bug: fixed)
Data.Time.formatTime "%S" includes fractional seconds
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
