fs: allow --min-age/--max-age to take a date as well as a duration

Fixes #4211
This commit is contained in:
Nick Craig-Wood
2020-05-11 13:25:39 +01:00
parent 8ddb3fbb2e
commit e91b509578
3 changed files with 65 additions and 13 deletions

View File

@@ -429,6 +429,13 @@ seconds or with a suffix of:
For example `--max-age 2d` means no files older than 2 days will be
transferred.
This can also be an absolute time in one of these formats
- RFC3339 - eg "2006-01-02T15:04:05Z07:00"
- ISO8601 Date and time, local timezone - "2006-01-02T15:04:05"
- ISO8601 Date and time, local timezone - "2006-01-02 15:04:05"
- ISO8601 Date - "2006-01-02" (YYYY-MM-DD)
### `--min-age` - Don't transfer any file younger than this ###
This option controls the minimum age of files to transfer. Give in