]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Wed, 17 Aug 2005 19:55:57 +0000 (19:55 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 17 Aug 2005 19:55:57 +0000 (19:55 +0000)
lib/ChangeLog

index 52dfca314efc4a3bfee5f97ed9425db01d30af57..ad62d08935214be34ccd1eb1d51b149a32181330 100644 (file)
@@ -1,3 +1,13 @@
+2005-08-17  Jim Meyering  <jim@meyering.net>
+
+       Make the %s format (seconds since the epoch) work for a negative
+       number and when used with a zero-padded field width, e.g. %015s.
+
+       * strftime.c (my_strftime): Move the `do_number_sign_and_padding'
+       label so that it precedes the code to set `digits'.  Otherwise,
+       %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
+       print `00-22'.  Now, it prints `-0022', as it should.
+
 2005-08-13  Jim Meyering  <jim@meyering.net>
 
        * getdate.y (get_date): Undo part of the 2005-04-04 change, so that