From: Michael Kelly Date: 2005-09-01T05:12:56+09:00 Subject: Re: Time (leap year??) Try: now = DateTime.now flag = Date.leap?( now.year ) -- Michael Kelly Sr. Software Engineer Eleven Wireless Inc. - The Possibilities are Wireless http://www.elevenwireless.com -----Original Message----- From: csjasnoch@wisc.edu [mailto:csjasnoch@wisc.edu] Sent: Wednesday, August 31, 2005 1:06 PM To: ruby-talk ML Subject: Time (leap year??) Is there a simple way to see if a year is a leap year (rather than writting an algorithm I wanted to check if it is already implimented first) It would be kewl if there was just a check on a Time var Like, now = Time.new flag = now.leapyear?