version 1.226, 2007/11/08 20:37:40 |
version 1.227, 2007/11/08 20:43:42 |
|
|
} |
} |
|
|
if (kwtype & RCS_KW_MDOCDATE) { |
if (kwtype & RCS_KW_MDOCDATE) { |
fmt = "%B %e %Y "; |
/* |
|
* Do not prepend ' ' for a single |
|
* digit, %e would do so and there is |
|
* no better format for strftime(). |
|
*/ |
|
if (rdp->rd_date.tm_mday < 10) |
|
fmt = "%B%e %Y "; |
|
else |
|
fmt = "%B %e %Y "; |
|
|
if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0) |
if (strftime(buf, sizeof(buf), fmt, &rdp->rd_date) == 0) |
fatal("rcs_kwexp_line: strftime failure"); |
fatal("rcs_kwexp_line: strftime failure"); |