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

User presentation of dates

From: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2002-05-19 16:22:09 CEST

I went around the code briefly - and found atleast three places where
dates were hobbled around for user display:

  'svn log' - dates are cut at the first '.' to keep them clean

  'svn info' - dates are printed in a non-standard format

  'svnlook' - dates are printed in the same ad-hoc format as above,
  but with a different implementation of the same thing

So it's quite clear that we want a function to format dates for user
display - one that takes in an apr_time_t, not a string.

But that raises the question of how we want the dates to be presented
to the user. There's two threads to this again.

First there is the issue of the actual format - is ISO-8601
human-friendly enough, or do we want to print a space instead of 'T'
as the delimiter. Or something completely different? Then what about
timezones - should the outputted dates be UTC always - or should they
be printed in a local timezone? I personally would wish for something
as close to ISO-8601 as possible, but your mileage might vary.

Then there is the issue of customization - do we want the user to be
able to specify the format timestamps show in? If yes, how does the
user specify the format? And here the biggest issue for me is that I
have no idea how the configuration file should be used in svn. Or
should this thing be done in a separate phase again - first a simple
user display format, then a customizable one past-1.0 or something?

Again, opinions and suggestions, please :)

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 19 16:24:00 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.