[thelist] Logic help

John Corry webshot at members.evolt.org
Thu May 2 19:54:01 CDT 2002

I'm working in PHP...but that's kind of beside the point.

I'm having a hard time coming up with the logic for determining whether
a date is in winter or not.

I at first thought it was as easy as making a timestamp out of winter's
begin date, making a timestamp of winters end date and seeing if my time
falls between the 2.

That doesn't work because if it's february, winter began last year. If
december, winter ends next year.


More information about the thelist mailing list