Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Alexander Langer
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]

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread G. Adam Stanislav
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

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Dan Nelson
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

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Alexander Langer
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

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Thomas David Rivers
> > 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

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread David Wolfskill
>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

Re: mktime(3) and strange struct tm entries

2000-01-07 Thread Alexander Langer
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

mktime(3) and strange struct tm entries

2000-01-07 Thread Alexander Langer
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