+2003-01-14 Christopher Faylor <cgf@redhat.com>
+
+ * libc/time/strftime.c (strftime): Add '%h' and '%l, %k' GNU
+ extensions.
+
2003-01-08 Richard Sandiford <rsandifo@redhat.com>
* configure.host (mips64vr-elf, mips64vrel-elf): New config.
}
break;
case 'b':
+ case 'h':
for (i = 0; i < 3; i++)
{
if (count < maxsize - 1)
return 0;
break;
case 'H':
+ case 'k':
if (count < maxsize - 2)
{
- sprintf (&s[count], "%2.2d",
+ sprintf (&s[count], *format == 'k' ? "%2d" : "%2.2d",
tim_p->tm_hour);
count += 2;
}
return 0;
break;
case 'I':
+ case 'l':
if (count < maxsize - 2)
{
if (tim_p->tm_hour == 0 ||
}
else
{
- sprintf (&s[count], "%.2d",
+ sprintf (&s[count], (*format == 'I') ? "%.2d" : "%2d",
tim_p->tm_hour % 12);
count += 2;
}