Date formats and ISO 8601

Adrian Klaver adrian.klaver at aklaver.com
Tue Jul 26 17:24:05 UTC 2016


On 07/26/2016 12:46 AM, Marcus Harnisch wrote:
> Hi all
>
> 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_representations


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."

>
> Thanks
> Marcus
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>


-- 
Adrian Klaver
adrian.klaver at aklaver.com



More information about the Mercurial mailing list