At 09:44 AM 2/22/01 +0100, Johan Deleu wrote:
>Hi,
>
>Here is my question:
>
>Par 4.2.3
> The TIMESTAMP field is in the format "Mmm dd hh:mm:ss"
> If the day of the month (dd) is less than 10, it MUST be represented as
>a space and then the
> number.
> --> Does this mean I have to use two spaces?
> (Do I write "Jan<space>1" or Jan<space><space>1" ?)
Hi Johan,
It's "Jan<space><space>1..".
Such as the following which increments the day of the
month and the hour of the day in each line.
Jan 8 08:00:00
Jan 9 09:00:00
Jan 10 10:00:00
Here's a hint from an old posting of source code I found:
/* Build the message. */
(void)time(&now);
sprintf(tbuf, "<%d>", pri);
p = tbuf + strlen(tbuf);
strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ", localtime(&now));
Does this need to be clarified better in the draft?
Thanks,
Chris