List full timestamps of files in a tarball

9

I have a large tar archive and want to see the exact (nanosecond) timestamps that are stored for each file in the archive. In case it's relevant, the tarball is in POSIX-2001 format (tar --format=posix).

tar --list --verbose displays the timestamps rounded off to the minute.

For comparison, ls --full-time does what I want, but I'd rather not have to extract everything first because it's huge.

For my purposes, command-line and GUI tools are both fine.

Mechanical snail

Posted 2012-09-08T02:07:47.610

Reputation: 6 625

Answers

11

I might be misreading your question but have you tried tar -t -v --full-time -f?

Snesticle

Posted 2012-09-08T02:07:47.610

Reputation: 878

I swear I tried that before and it didn't work, but now it does. Strange. – Mechanical snail – 2012-09-08T02:40:29.800