* PATCH: zstat date and time output
@ 2013-05-21 16:23 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2013-05-21 16:23 UTC (permalink / raw)
To: Zsh Hackers' List
Following the various issues with times and dates going by, I've just
noticed that the default string output for times from "zstat -s" omits
the year, which seems a bit bizarre. Presumably I intended to use a
standard ctime-like output, which the following does.
diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c
index a3e95bb..515c3cd 100644
--- a/Src/Modules/stat.c
+++ b/Src/Modules/stat.c
@@ -361,7 +361,7 @@ bin_stat(char *name, char **args, Options ops, UNUSED(int func))
struct stat statbuf;
int found = 0, nargs;
- timefmt = "%a %b %e %k:%M:%S";
+ timefmt = "%a %b %e %k:%M:%S %Z %Y";
for (; *args && (**args == '+' || **args == '-'); args++) {
char *arg = *args+1;
pws
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-21 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 16:23 PATCH: zstat date and time output Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).