summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/stat.c b/src/stat.c
index 0124c545e..a97687a87 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -62,7 +62,6 @@
#include "file-type.h"
#include "fs.h"
#include "getopt.h"
-#include "inttostr.h"
#include "quote.h"
#include "quotearg.h"
#include "stat-time.h"
@@ -415,9 +414,7 @@ human_time (struct timespec t)
+ sizeof "-MM-DD HH:MM:SS.NNNNNNNNN +ZZZZ"))];
struct tm const *tm = localtime (&t.tv_sec);
if (tm == NULL)
- return (TYPE_SIGNED (time_t)
- ? imaxtostr (t.tv_sec, str)
- : umaxtostr (t.tv_sec, str));
+ return timetostr (t.tv_sec, str);
nstrftime (str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", tm, 0, t.tv_nsec);
return str;
}