--- Cliff Woolley <[EMAIL PROTECTED]> wrote:
> If y is divisible evenly by 400, it's automatically divisible by 100... you
> don't need
> to check both. =-)
That's what I get for talking before I think... I guess you actually DO have to
check,
since you have to be sure that if it's not divisi
Cliff Woolley <[EMAIL PROTECTED]> writes:
> --- [EMAIL PROTECTED] wrote:
> > +/* Leap year is any year divisible by four, but not by 100 unless also
> > + * divisible by 400
> > + */
> > +#define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0)
> > : 0)
> > +
>
> If y is divisib
--- [EMAIL PROTECTED] wrote:
> +/* Leap year is any year divisible by four, but not by 100 unless also
> + * divisible by 400
> + */
> +#define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) :
> 0)
> +
If y is divisible evenly by 400, it's automatically divisible by 100... you
Some fixes in the Win32 time support.
* (IsLeapYear): New macro for quickly figgerin' out if a given year is a
leap year.
* (SystemTimeToAprExpTime): Perform the calculation of tm_yday. Also,
negate the sign of the tm_gmtoff field to be consistent with Unix
platforms and APR header file
Question,
The check_symlinks() fn of http_request carries the following warning:
/*
* Strip trailing '/', if any, off what we're checking; trailing slashes
* make some systems follow symlinks to directories even in lstat().
* After we've done the lstat, put it back. Also, don'