Date formats and ISO 8601

Matt Mackall mpm at selenic.com
Thu Jul 28 19:18:21 UTC 2016


On Thu, 2016-07-28 at 08:14 +0300, Stanimir Stamenkov wrote:
> Tue, 26 Jul 2016 10:24:05 -0700, Adrian Klaver:
> > 
> > On 07/26/2016 12:46 AM, Marcus Harnisch wrote:
> > 
> > > 
> > > I just happened to notice that contrary to claims made by "hg help
> > > dates", Mercurial does not support ISO 8601 format (cf.
> > > https://en.wikipedia.org/wiki/ISO_8601). Could this be added? A
> > > common
> > > standard would be really helpful in scripts where tools might
> > > generate
> > > time stamps to be used by Mercurial.
> > I am guessing you are referring to the lack of T. That is permitted:
> > 
> > https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representation
> > s
> > 
> > It is permitted to omit the 'T' character by mutual agreement.[21]
> > 
> > 21. "ISO 8601:2004(E)". ISO. 2004-12-01. "4.3.2 NOTE: By mutual
> > agreement of the partners in information interchange, the character
> > [T] may be omitted in applications where there is no risk of
> > confusing a date and time of day representation with others defined
> > in this International Standard."
> Just for reference, couple of ISO 8601 applications suggest always 
> using the 'T':

Again, ain't gonna happen.

Patches are in flight to support -reading- the T variants, but we can't/won't
change our output format. If you need the T, you can specify your own date
format string.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list