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.
This commit is contained in:
Jeff Johnston 2000-05-10 17:58:29 +00:00
parent adfefc0b06
commit f35ceefaf0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de> Wed May 03 17:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/errno.h: Add define for ENOSHARE ("No such * libc/include/sys/errno.h: Add define for ENOSHARE ("No such

View File

@ -18,7 +18,7 @@ _DEFUN (asctime_r, (tim_p, result),
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" "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], day_name[tim_p->tm_wday],
mon_name[tim_p->tm_mon], mon_name[tim_p->tm_mon],
tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min,