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

What's up with time format stuff again?

From: Nuutti Kotivuori <naked_at_iki.fi>
Date: 2002-06-11 22:46:08 CEST

I'll do a brief recap on the few issues about the time and date
formats and things related.

  * ISO-8601 dates

  Code for parsing ISO-8601 dates has been in subversion since rev
  2012. Now that there finally is a new tarball, we can start
  generating the new style dates, since everyone is expected to have a
  client that understands them. Do note that this only affects the
  generation of new date stamps - old date stamps already in the
  repository stay the same until someone converts all of them. Doing
  this fixes issue 614 for every new repository, and opens up issue
  637 for testing.

  If no-one wants to point out a terrible mistake in this thing, I'll
  do the commit tomorrow or so.

  * Unify date user display

  For now, this requires writing a new function in libsvn_subr/time.c
  to print out dates for user display. Then places that would need to
  be adapted to use that are atleast 'svn log', 'svn info', 'svnlook'
  - there was something else too, but I can't remember it right now.

  I have the code ready for this, kind of, but it's ugly and a bit
  incomplete.

  * Make date functions return proper errors

  Atleast the svn_time_from_nts parsing function can obviously error,
  though it should never be used in a situation where it can error
  (since all timestamps are written by the opposite of this
  function). The svn_time_to_nts function could possibly give an error
  as well, but it's a borderline case. But maybe it should be changed
  just for symmetry.

  I have svn_time_from_nts already converted to return an error, and I
  am considering on doing the same for svn_time_to_nts. Feedback is
  ofcourse appreciated. But again, it's a bit ugly and incomplete
  right now.

That's it for now, I guess. I should be posting some patches for
review here in the near future. Or if I happen to die or something,
just mark these as bite-sized issues - they are simple things.

-- Naked

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 11 22:46:56 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.