Return to format.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.173, 2019/03/13 18:09:12 | version 1.174, 2019/03/14 21:27:26 | ||
---|---|---|---|
|
|
||
if (fmt == NULL || *fmt == '\0') | if (fmt == NULL || *fmt == '\0') | ||
return (xstrdup("")); | return (xstrdup("")); | ||
if (t == 0) | |||
t = time(NULL); | |||
tm = localtime(&t); | tm = localtime(&t); | ||
if (strftime(s, sizeof s, fmt, tm) == 0) | if (strftime(s, sizeof s, fmt, tm) == 0) |