[PATCH] strftime: support %q to output the quarter of year
Pádraig Brady
P@draigBrady.com
Fri Nov 4 01:47:00 GMT 2016
Updated patch attached.
Tested using:
sudo alternatives --set ld /usr/bin/ld.bfd
mkdir build.tmp
cd build.tmp
../configure --quiet --disable-sanity-checks
make PARALLELMFLAGS=-j$(nproc)
make -r PARALLELMFLAGS=-j$(nproc) -C $PWD/../time objdir=$(pwd) check
./testrun.sh time/tst-strftime && echo ok
Note even though the code is trivial here,
%q is useful as from the shell you need to:
$(( ($(date +%-m)-1)/3+1 ))
thanks,
Pádraig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-strftime-%q.patch
Type: text/x-patch
Size: 2873 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20161104/2fc5562c/attachment.bin>
More information about the Libc-alpha
mailing list