From: "csjasnoch@..." Date: 2005-09-01T05:11:23+09:00 Subject: Re: Time (leap year??) I know I could do somethine like this (and it works for future years) now = Time.new leap = now.year%4 if(learp == 0) flag = true ############# But if I were to use mktime and involved past dates I would have to be weary of the millenias. How does it work Every 4 years, every hundred but not every millenia.. Or is it also not every 100? FYI I am trying to make a weekday hash generator. So I send the year and month and get all weekdays for every day of the month.