Was 1798 a leap year?

The next leap year is 2012 and the last one was 2008. 1798 was not a leap year.