Tim Foster wrote:

> At the moment, -e reads a comma-separated list of dates or date ranges.
> So we could specify multiple discreet events, or ranges of events, or
> both.
> 
> pkg history -e 2010-10-20T14:18:17,2010-11-02T10:20:00-now
> 
> I think it'd be hard to do that with -s,-e as dlstat does it, though
> perhaps wanting to specify multiple ranges is overkill (it does allow for
> "show me pkg events that happened yesterday and today, between 12:00 and
> 15:00" so long as you know yesterday's and today's dates)

I don't know that multiple independent ranges seem useful to me, but if
you've done the work, you've done the work.

It's not clear what "e" stands for here.  "Event"?  If so, I'd expect to
pass it a unique event identifier.  If this just accepts timestamps (and
ranges), then -t seems more natural.

> > My question for Tim is whether I can ask for events using some subset of
> > the time specification -- if I ask for HH:MM, will I get all events that
> > took place (or at least started) during that hour and minute, or is it a
> > parsing error?
> 
> That's currently a parsing error.

Okay.  That can always be added later on, anyway.

> I can go back to the drawing board if you think this would be a useful
> addition, or you think overloading -e to take both discreet events and
> ranges of events is bad? (I quite like it, I have to admit)

Single events and ranges both seem quite useful to me, though distinct
ranges don't, and I think a way to represent a time with a shorter string,
similarly to fmdump (including "the past X hours/minutes/fortnights"),
would be nice, but like I said, that can be added later on.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to