<robp__> Who wants a programming challenge!
<robp__> okay here's my dilemma
<robp__> I need a way to take a number that is a countdown of the days from January 1st, 2000
<robp__> and return what year that day is in
<robp__> and what day of the year it is
<robp__> i.e.
<robp__> "1" would be Day 1 of year 2000
<robp__> "366" would be Day 1 of year 2001
<robp__> "365" would be Day 365 of year 2000
<robp__> however, it's not as easy as it sounds
<robp__> because one also has to account for leap years
<robp__> yep
<robp__> If there were no such thing as leap years, you could use modulus
<robp__> but damn you, leap years!
<robp__> pseudocode to determine if a year is a leap year:
<robp__> if year modulo 400 is 0 then leap
<robp__> else if year modulo 100 is 0 then no_leap
<robp__> else if year modulo 4 is 0 then leap
<robp__> else no_leap