1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-23 04:33:58 +00:00

internationalization

SCCS-file: date.c
SCCS-SID: 7.15
This commit is contained in:
Arthur David Olson
1995-01-02 12:13:58 -05:00
committed by Paul Eggert
parent 85d991fc5a
commit 480f0366a5

9
date.c
View File

@ -490,11 +490,10 @@ const char * const format;
(void) time(&now);
tm = *localtime(&now);
if (format == NULL) {
timeout(stdout, "%a %b ", &tm);
(void) printf("%2d ", tm.tm_mday);
timeout(stdout, "%X %Z %Y", &tm);
} else timeout(stdout, format, &tm);
#if HAVE_SETLOCALE
setlocale(LC_TIME, "");
#endif
timeout(stdout, format ? format : "%+", &tm);
(void) putchar('\n');
(void) fflush(stdout);
(void) fflush(stderr);