Sun Feb 11 07:53:58 PST 2007 [EMAIL PROTECTED]
* Changed %S to return whole seconds, and added %Q and %q.
Implements part of http://hackage.haskell.org/trac/ghc/ticket/1007
formatTime: Change %S to: the number of whole seconds.
formatTime: Add %q: the number of picoseconds (including trailing zeroes).
formatTime: Add %Q: decimal point and second decimals, without trailing
zeros.
If the number of picoseconds is zero, nothing is produced (not even the
decimal point).
Rationale: Currently %S includes decimals if there are any. This is different
from
strftime, and there is no format specifier for just the integer part of the
seconds.
It would be nice to have such a specifier to implement many standard date
formats
(e.g. RFC 822). Also a specifier for second decimals would also help when
using %s.
Currently there is no reasonable way to get more than integer second
precision with
since-epoch timestamps. The current %S would be equivalent to %S%Q under this
proposal."
M ./Data/Time/LocalTime/Format.hs -4 +15
M ./Data/Time/LocalTime/Parse.hs -15 +19
_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries