Branko Čibej wrote on Thu, May 19, 2011 at 14:35:01 +0200: > On 19.05.2011 11:53, Stefan Sperling wrote: > > On Wed, May 18, 2011 at 09:38:55PM +0200, Branko Čibej wrote: > >> Why? That doesn't make sense. Second of all, all these wordy aliases are > >> just shorthands for real timestamps anyway -- by your reasoning, you > >> could eliminate all of them. > > There is otherwise no way to express dates relative to the current time. > > So instead of introducing a subset of the silliness that was in CVS, why > then don't you invent an unambiguous format that /can/ express dates > relative to the current time? > > For example, you might support: svn -r {-1.12:13:56}, meaning one day, > twelve hours, 13 minutes and 56 seconds ago. >
Which is language-independent, much shorter to type, doesn't require quoting spaces, avoids the "months are 30 days" edge case... Anyway, to keep things simple, how about: a '{' followed by either a plus or a minus means "N days in the future/past" where N is the number following the plus-or-minus; and if the plus-or-minus is missing is missing, then it's parsed as a date. > -- Brane >