Thus spake Dan Nelson ([EMAIL PROTECTED]):
> 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.
Ah, thank you.
Alex
--
I doubt, therefore I might be.
To Unsubscribe: send mail to [EMAIL PROTECTED]
At 17:14 31-12-1999 +0100, Alexander Langer wrote:
>mktime(3) with this tm returns the date 1 Dezember.
>
>Does POSIX want this?
>Does anyone have the specs and could take a look?
>Or is this a bug?
Says POSIX Programmer's Guide, by Donald Lewine: "The mktime() function is
not required to reject
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
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;
Wh
>
> Hello!
>
> Try the following:
>
> Take any year, minute, seconds, hours (etc...).
>
> set the struct tm accordingly.
> set the tm->tm_mon = 10 (November)
> set the tm->tm_mday = 31 (november has only 31 days)
>
> mktime(3) with this tm returns the date 1 Dezember.
>
> Does POSIX want thi
>Date: Fri, 31 Dec 1999 17:14:23 +0100
>From: Alexander Langer <[EMAIL PROTECTED]>
>Try the following:
>Take any year, minute, seconds, hours (etc...).
>set the struct tm accordingly.
>set the tm->tm_mon = 10 (November)
>set the tm->tm_mday = 31 (november has only 31 days)
No. November has bu
Thus spake Alexander Langer ([EMAIL PROTECTED]):
> set the tm->tm_mday = 31 (november has only 31 days)
^^ 30, of course
Alex
--
I doubt, therefore I might be.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in t
Hello!
Try the following:
Take any year, minute, seconds, hours (etc...).
set the struct tm accordingly.
set the tm->tm_mon = 10 (November)
set the tm->tm_mday = 31 (november has only 31 days)
mktime(3) with this tm returns the date 1 Dezember.
Does POSIX want this?
Does anyone have the specs
8 matches
Mail list logo