Subject: bug#34608: date +%+4C is unimplemented, contrary to POSIX

From: Eric Blake <[email-masked]>
Date: Thu, 21 Feb 2019 21:40:18 -0600

On 2/21/19 9:37 PM, Paul Eggert wrote:
> Eric Blake wrote:
> 
>> date -d 0001-01-01 +.%+4C.
>>
>> should produce ".+000.", but currently it produces ".%+4C." because the
>> + flag is unimplemented.
>>
>> See also http://austingroupbugs.net/view.php?id=1184
> 
> Surely this bug should be reported against strftime, not against 'date'.
> POSIX does require that strftime behave that way, but it does not place
> a similar requirement on 'date'.
> 

That used to be true, but now POSIX wants date to behave as if it uses
strftime:

http://austingroupbugs.net/view.php?id=466

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org