This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] strftime: support %q to output the quarter of year
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Pádraig Brady <P at draigBrady dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 03 Nov 2016 20:58:01 +0100
- Subject: Re: [PATCH] strftime: support %q to output the quarter of year
- Authentication-results: sourceware.org; auth=none
- References: <1478202401-5238-1-git-send-email-P@draigBrady.com>
* Pádraig Brady:
> This is already supported by gnulib.
This needs a test case (at least a test case update).
> + case L_('q'): /* GNU extension. */
> + DO_SIGNED_NUMBER (1, tp->tm_mon < -3, tp->tm_mon / 3 + 1U);
> + break;
I don't think we have DO_SIGNED_NUMBER in glibc.