[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Unify human represented timestamp formats.

From: Mark D. Baushke <mdb_at_juniper.net>
Date: 2002-06-22 21:17:07 CEST

The W3 Consortium also talked about ISO-8601 timeszones
(see URL<http://www.w3.org/TR/NOTE-datetime>).

They point to the paper http://www.cl.cam.ac.uk/~mgk25/iso-time.html
by Markus Kuhn which is really a good summary.

It is good to note that the 'T' is recommended when you need to store
a time and is not required when you are just displaying a time.

For what it is worth, I concur with Nuutti that if the time has a colon,
the time zone should also have a colon. If you really do not like a
colon, then for many cases the precision could be reduced and you could
use '2002-06-22 11:14:42 +03' if you didn't want to have
'2002-06-22 11:14:42 +03:00' as the displayed time.
        
        -- Mark

Nuutti Kotivuori <naked@iki.fi> wrote:

> Justin Erenkrantz wrote:
> > On Sat, Jun 22, 2002 at 01:08:37PM +0300, Nuutti Kotivuori wrote:
> >> I made a patch which adds a new function, svn_time_to_human_nts,
> >> and then uses it for the places where the date format is mangled
> >> for user display.
> >>
> >> The actual format of the date stamps is:
> >> 2002-06-22 11:14:42 +03:00
> >
> > If you are going to insist on this format, I would greatly prefer
> > removing the colon from the TZ. -- justin
>
> I am not insisting on anything, really. I just thought I got a bit
> more wishes for derivatives of this format - I really don't know. I
> thought I'd solve the problem by committing something and then just
> waiting until I get a clear request from someone to change it to
> something else. So I'd like a clear comment from you or someone else
> that how should I proceed.
>
> But on the format itself, actually the ISO-8601 standard implies that
> the TZ should have a colon if the time format has colons - and not
> have a colon if the time format doesn't have them. The usage of space
> instead of 'T' as the middle delimiter is something one can get away
> with - but the addition of space between the time and the timezone
> does violate the standard I believe. I do not have the standard
> accessible, so I really can't say anything definite. And this is
> ofcourse very much irrelevant for dates that are just displayed to the
> user.
>
> -- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 22 21:19:49 2002

This is an archived mail posted to the Subversion Dev mailing list.