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

Re: RFC: date parser rewrite

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-12-16 23:51:22 CET

Greg Hudson wrote:
> On Tue, 2003-12-16 at 10:54, Julian Foad wrote:
>
>>Simpler, but not much so, but I won't force the issue. In that case I
>>think we should require that the specified time be between 00:00 and
>>"now", so that both semantics (other times meaning "later today" and
>>other times meaning "yesterday") are reserved for a future extension.
>
> You seem to have a misconception here. In the current architecture, we
> take a date string and convert it to an apr_time_t. We do not convert
> it to a range of times. We're not talking about changing that
> architecture.

I don't have that particular misconception, but maybe I failed to explain my meaning clearly. Let me try again.

When parsing a string of the form "hh:mm[:ss]", MBK was suggesting that we interpret it as the specified time on the current date, but he agreed with me that it would be useful to interpret it instead as the specified time within the last 24 hours or so.

These two interpretations conflict for times that are greater than the time of day "now". In the former proposal, such a time means "later today" and is only useful for overcoming clock skew, and times up to a few minutes greater than "now" might be encountered. In my latter proposal, a time much greater than "now" is interpreted as the specified time yesterday; a time just a little bit greater than "now" is interpreted as "later" to allow for clock skew.

I was then trying to say that, in order to allow future choice of interpretation, we should for now only accept a time in this format if it would be interpreted the same way in both schemes. I said that the set of times for which this is true is the times between 00:00 and "now", but in fact that is not restrictive enough.

I would now say that enforcing such a restriction is unnecessary, because people will not get into the habit of using times of "later today", because Subversion does not deal with times in the future.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 16 23:51:29 2003

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.