summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-28 12:20:51 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-03-28 12:26:37 +0300
commitfc61c174100019859fc3ae930a18839cd316be6e (patch)
tree02e7e9d459c90c1f28449046b4cbbaa744c8e687 /doc
parent2981fcc5cbb63080f24f59570ea7fde8efc9bb34 (diff)
downloadtar-fc61c174100019859fc3ae930a18839cd316be6e.tar.gz
New option --full-time.
* src/common.h (full_time_option): New global. * src/tar.c (FULL_TIME_OPTION): New constant. (options): New option --full-time. (parse_opt): Handle the --full-time option. * src/list.c (simple_print_header): Pass full_time_option as the 2nd argument to tartime. * doc/tar.texi: Update. * NEWS: Update.
Diffstat (limited to 'doc')
-rw-r--r--doc/tar.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/tar.texi b/doc/tar.texi
index 9bca1ef7..ed93e579 100644
--- a/doc/tar.texi
+++ b/doc/tar.texi
@@ -2684,6 +2684,30 @@ Creates a @acronym{POSIX.1-2001 archive}.
@xref{Formats}, for a detailed discussion of these formats.
+@opsummary{full-time}
+@item --full-time
+This option instructs @command{tar} to print file times to their full
+resolution. Usually this means 1-second resolution, but that depends
+on the underlying file system. The @option{--full-time} option takes
+effect only when detailed output (verbosity level 2 or higher) has
+been requested using the @option{--verbose} option, e.g., when listing
+or extracting archives:
+
+@smallexample
+$ @kbd{tar -t -v --full-time -f archive.tar}
+@end smallexample
+
+@noindent
+or, when creating an archive:
+
+@smallexample
+$ @kbd{tar -c -vv --full-time -f archive.tar .}
+@end smallexample
+
+Notice, thar when creating the archive you need to specify
+@option{--verbose} twice to get a detailed output (@pxref{verbose
+tutorial}).
+
@opsummary{group}
@item --group=@var{group}