bug#35032: date ISO 8601 / RFC 3339 formats

2019-03-29 Thread Nicolas Mailhot
Le jeudi 28 mars 2019 à 22:07 +0100, Erik Auerswald a écrit : > > > 1. The W3C profile mandates T as time separator, and ":" as > > hour/minutes separator > > 2. RFC 3339 makes both optional > > > > Then, logically, date removed the ":" for its --iso-8601 option, > > $ date --iso-8601=seconds > >

bug#35032: date ISO 8601 / RFC 3339 formats

2019-03-28 Thread Erik Auerswald
Hi, On Thu, Mar 28, 2019 at 10:43:42AM -0700, Paul Eggert wrote: > On 3/28/19 10:20 AM, Nicolas Mailhot wrote: > > Would it be possible to make them both optional in --rfc-3339, and > > both mandatory in --iso-8601 ? > > Sorry, I don't understand what you're proposing, specifically. Can you > say

bug#35032: date ISO 8601 / RFC 3339 formats

2019-03-28 Thread Assaf Gordon
severity 35032 wishlist retitle 35032 date: adjust rfc8601/3339 formats to W3C standard stop On 2019-03-28 11:20 a.m., Nicolas Mailhot wrote: Would it be possible to make them both optional in --rfc-3339, and both mandatory in --iso-8601 ? Or add a --w3c option that conforms to the W3C profile?

bug#35032: date ISO 8601 / RFC 3339 formats

2019-03-28 Thread Paul Eggert
On 3/28/19 10:20 AM, Nicolas Mailhot wrote: > Would it be possible to make them both optional in --rfc-3339, and > both mandatory in --iso-8601 ? Sorry, I don't understand what you're proposing, specifically. Can you say exactly what you want, with specific calls to 'date' and what you want the ou

bug#35032: date ISO 8601 / RFC 3339 formats

2019-03-28 Thread Nicolas Mailhot
Hi A long, long time ago, in 1997, W3C looked at the monument ISO 8601 was, and produced a simplified profile for mere mortals: https://www.w3.org/TR/NOTE-datetime It serves as formatting basis in XML, IJSON, etc Sometime later, in 2002, the IETF took this note, fleshed it out a little, and