In the last episode (Jan 07), Alexander Langer said:
> Thus spake Thomas David Rivers ([EMAIL PROTECTED]):
>
> > I believe this is correct behaviour.
>
> Ok. I got a further question:
> >From ctime(3):
> til tm_mon and tm_year are determined. Mktime() returns the
> specified calendar time; if the calendar time cannot be
> represented, it returns -1;
>
> Which calendar time is meant?
> IMO November 31th is void and cannot be represented.
The manpage also states:
The original values of the tm_wday and tm_yday components of the
structure are ignored, and the original values of the other
components are not restricted to their normal ranges.
...
On successful completion, the values of the tm_wday and tm_yday
components of the structure are set appropriately, and the other
components are set to represent the specified calendar time, but
with their values forced to their normal ranges.
Nov 31 cannot be represented, but it gets normalized to Dec 1. The
only non-representable dates are those that cannot be stored in a
time_t.
--
Dan Nelson
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message