[PATCH] strftime: support %q to output the quarter of year

Pádraig Brady P@draigBrady.com
Fri Nov 4 12:00:00 GMT 2016


On 04/11/16 11:41, Szabolcs Nagy wrote:
> On 03/11/16 19:46, Pádraig Brady wrote:
>> This is already supported by gnulib.

> why?

It's a marginal benefit, but as
noted in the cover of my updated patch:

"Note even though the code is trivial here,
%q is useful from the shell as there you need to:
$(( ($(date +%-m)-1)/3+1 ))".

I'll add that to the actual commit.




More information about the Libc-alpha mailing list