Re: Testing for leap year?

Author: Ed Leafe

Posted: 2011-04-12 at 17:56:07

On Apr 12, 2011, at 5:54 PM, Paul McNett wrote:

> But I like Mike's TRY/CATCH approach.

In Python you could do that, or simply:

import calendar

return calendar.isleap(year)

-- Ed Leafe

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/F1ADC012-43E4-487E-AF41-03FFF334751F@leafe.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Ed Leafe