Mercurial > hg > octave-nkf > gnulib-hg
changeset 6062:af9525e258c2
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.
(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.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 19 Aug 2005 09:21:57 +0000 |
parents | 92917b562bb2 |
children | 12f61def36ee |
files | lib/strftime.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff