[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing long-iso date format



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