Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192918 - app-portage/portage-utils: qlop: add --date (like genlop's)
Summary: app-portage/portage-utils: qlop: add --date (like genlop's)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-18 11:41 UTC by Laurento Frittella (mrfree)
Modified: 2016-03-28 06:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurento Frittella (mrfree) 2007-09-18 11:41:14 UTC
genlop --help

  --date datestring1 [ --date datestring2]  only shows results between datestring1
       and datestring2. datestring2 dafaults to "now" if not explicitly set.
       (e.g. genlop --list --date 3 days ago)

I haven't found nothing like this in qlop.
Is it my bad? If not I think an option like this could be useful for qlop too.
Comment 1 SpanKY gentoo-dev 2016-03-27 18:07:45 UTC
genlop has the advantage of being perl and having a full date parsing lib.  coreutils's date program uses gnulib's large date yacc parser.  i don't have easy access to anything like that, and i don't really want to pull in a large dep either.

adding an ad-hoc parser shouldn't be too hard though.  i'm thinking:
(1) support for "<#> <day|week|month|year>[s]"
    e.g. -d "3 days ago"
(2) support for strftime() format where you define the args & values
    e.g. -d "2015-12-25"            (default is %F)
    e.g. -d "1459101740"            (detect a single # as %s)
    e.g. -d "%d.%m.%Y|25.12.2015"   (explicitly define the format string)
Comment 3 Dennis Schridde 2016-03-28 06:27:45 UTC
Thanks!