diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-05-10 17:58:29 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-05-10 17:58:29 +0000 |
commit | f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0 (patch) | |
tree | 9c94c4e4a782281396b1b06f0a67650364e57f66 /newlib/libc/time | |
parent | adfefc0b0672a09848a9de7f0d53d748245a87d0 (diff) | |
download | cygnal-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.tar.gz cygnal-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.tar.bz2 cygnal-f35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0.zip |
Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
* libc/time/asctime_r.c (asctime_r): Change output format. Day of
month is now padded with space, not zero. This now conforms to
ANSI standard.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r-- | newlib/libc/time/asctime_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/asctime_r.c b/newlib/libc/time/asctime_r.c index ff70ea415..2c02667e6 100644 --- a/newlib/libc/time/asctime_r.c +++ b/newlib/libc/time/asctime_r.c @@ -18,7 +18,7 @@ _DEFUN (asctime_r, (tim_p, result), "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; - sprintf (result, "%.3s %.3s %.2d %.2d:%.2d:%.2d %d\n", + sprintf (result, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", day_name[tim_p->tm_wday], mon_name[tim_p->tm_mon], tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, |