-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filter: Add support for relative dates in --min-date and --max-date
The relative dates are parsed by `numeric_date` which uses datetime.date.today() to translate the relative date to an absolute date. Relative dates are positive duration values following the ISO 8601 duration syntax e.g. `--min-date 1Y2W5D` for 1 year, 2 weeks and 5 days ago or `--max-date 1D` for yesterday This also adds a package dependency `isodate` to parse the duration string.
- Loading branch information
1 parent
fbb1303
commit 99bc2a5
Showing
2 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters