Hi, a nice routine, i found in some of our old c-sources: #define leap_year(yy) ((yy & 3) == 0 ? 1 : 0) Klaus Franke