[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New ‘--list-generations’ and ‘--delete-generations’ options
From: |
Nikita Karetnikov |
Subject: |
Re: New ‘--list-generations’ and ‘--delete-generations’ options |
Date: |
Mon, 09 Sep 2013 13:17:09 +0400 |
> In that case, would you suggest --list-generations=rec to specify the
> recutils output format (with no filtering)?
No need for the ‘rec’ part. I propose to output all generations in the
recutils format when ‘--list-generations’ is passed.
> Age specifications would only be of the kind “at least X days/months
> old”. A non-ambiguous syntax is needed, and something more flexible
> than just ‘last-month’. Let’s assume ‘string->duration’:
> "+22" ⇒ #<time time-duration ...> ; 22 days
> "+2w" ⇒ #<time time-duration ...> ; 14 days
> "+1m" ⇒ #<time time-duration ...> ; 30 days
The plus sign is confusing (we’re subtracting). I’d rather use ‘22d’,
‘2w’, and ‘1m’.
How can I subtract 22 days from (current-time) using SRFI-19? There is
a ‘subtract-duration’ procedure, but I don’t understand how to create a
‘duration’ object.
> These are just suggestions, but that seems to make more sense now.
Indeed.
> Apologies for the confusion!
No worries. Thanks for the tips.
pgpQdWoPUxubR.pgp
Description: PGP signature
- New ‘--list-generations’ and ‘--delete-generations’ options (was: Goals for 0.4), Nikita Karetnikov, 2013/09/01
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/02
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/04
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/05
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/05
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/07
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/08
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/08
- Re: New ‘--list-generations’ and ‘--delete-generations’ options,
Nikita Karetnikov <=
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/09
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/11
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/11
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/12
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/12
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/13
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/13
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Nikita Karetnikov, 2013/09/16
- Re: New ‘--list-generations’ and ‘--delete-generations’ options, Ludovic Courtès, 2013/09/16
- PRELIMINARY: [PATCH] guix package: Add '--list-generations'., Nikita Karetnikov, 2013/09/17