From 9069af45e691d1252c727da66aa4f3f3c7f1ea29 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 30 Sep 2010 16:42:13 -0600 Subject: stat: print timestamps to full resolution * src/stat.c (epoch_time): New function. (print_stat): Use it for %[WXYZ]. * NEWS: Document this. * tests/touch/60-seconds: Adjust test to match. * tests/misc/stat-birthtime: Likewise. --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 0c7cc38d1..2ce03e312 100644 --- a/NEWS +++ b/NEWS @@ -75,6 +75,11 @@ GNU coreutils NEWS -*- outline -*- merely accepted and ignored, for compatibility. Starting two years ago, with coreutils-7.0, its use evoked a warning. + stat now outputs the full sub-second resolution for the atime, + mtime, and ctime values since the Epoch, when using the %X, %Y, and + %Z directives of the --format option. This matches the fact that + %x, %y, and %z were already doing so for the human-readable variant. + touch's --file option is no longer recognized. Use --reference=F (-r) instead. --file has not been documented for 15 years, and its use has elicited a warning since coreutils-7.1. -- cgit v1.2.3-70-g09d2