guix-devel
[Top][All Lists]
Advanced

[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.

Attachment: pgpQdWoPUxubR.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]