[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing long-iso date format
- To: James Cass <jamescass.sc@gmail.com>
- Subject: Re: Forcing long-iso date format
- From: Graham Percival <gperciva@tarsnap.com>
- Date: Sun, 24 Jul 2016 20:00:48 -0700
- Cc: tarsnap users <tarsnap-users@tarsnap.com>
- In-reply-to: <CAF81nx-zPZwTqjGVx4-artsjgM05aoQ7v=WzOe53onAFMHQGyg@mail.gmail.com>
- References: <CAF81nx-zPZwTqjGVx4-artsjgM05aoQ7v=WzOe53onAFMHQGyg@mail.gmail.com>
On Sun, Jul 24, 2016 at 05:20:41PM -0400, James Cass wrote:
> Is there a way to force long-iso date format when retrieving a file list
> from the Tarsnap server? By long-iso date format, I mean: yyyy-mm-dd
> hh:mm:ss. I didn't see anything in the man page, unless I overlooked it.
If you add -v, then you get the date in %F %T format, which I believe is what
you want:
$ tarsnap --list-archives -v
gin-2016-05-01_10-44-17 2016-05-01 10:44:17
gin-2016-05-01_10-42-50 2016-05-01 10:42:50
...
(note that those archive names have a date field in the actual name; ignore
the gin-2016-... portion and just look at the second and third fields)
Cheers,
- Graham