Date: 06/22/99
- Next message: Colin Viebrock: "[PHP-DEV] Ye olde CVS trap"
- Previous message: Kristian Köhntopp: "Re: [PHP-DEV] pgsql.c question"
- Next in thread: Jim Winstead: "Re: [PHP-DEV] _php3_mktime"
- Reply: Jim Winstead: "Re: [PHP-DEV] _php3_mktime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I was taking a look at the new _php3_mktime code and had a question or
two.
a) The following code segment confuses me:
if (gm)
ta.tm_isdst = 0;
else
ta.tm_isdst = -1;
if (arg_count > 6)
ta.tm_isdst = arguments[6]->value.lval;
This, to me, seems to say that if they don't specify the daylight
savings time effect for the time stamp in question, that it will
automatically assume they are in -1 mode? Instead, shouldn't we grab an
actual timestamp at this point and let the system determine the isdst?
b) We're making the assumption that a negative value for tm_min and
tm_hour are ok. Is this safe on all platforms? The only platform I
currently have access to is Linux, and it does work there...
-- I think animal testing is a terrible idea; they get all nervous and give silly answers.Cole Tuininga Network Admin Trade Services, Inc Egon <email protected> (603) 427-1100
-- PHP Development Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Colin Viebrock: "[PHP-DEV] Ye olde CVS trap"
- Previous message: Kristian Köhntopp: "Re: [PHP-DEV] pgsql.c question"
- Next in thread: Jim Winstead: "Re: [PHP-DEV] _php3_mktime"
- Reply: Jim Winstead: "Re: [PHP-DEV] _php3_mktime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

