mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-26 18:14:15 +00:00
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.
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user