date: remove non-standard special-casing of date '+%f'
git log did not reveal why it is there. function old new delta date_main 1016 995 -21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f26c5660c2
commit
56a5731a1a
@ -383,10 +383,6 @@ int date_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* With no format string, just print a blank line */
|
/* With no format string, just print a blank line */
|
||||||
date_buf[0] = '\0';
|
date_buf[0] = '\0';
|
||||||
} else {
|
} else {
|
||||||
/* Handle special conversions */
|
|
||||||
if (is_prefixed_with(fmt_dt2str, "%f")) {
|
|
||||||
fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S";
|
|
||||||
}
|
|
||||||
/* Generate output string */
|
/* Generate output string */
|
||||||
strftime(date_buf, COMMON_BUFSIZE, fmt_dt2str, &tm_time);
|
strftime(date_buf, COMMON_BUFSIZE, fmt_dt2str, &tm_time);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user