index 548758a14930875211103386d8647ab556e6e1a3..31c78540f285fd3c88248e09a2dcfb8de67ab460 100644 (file)
/*
* These are the rules for the Gregorian calendar, which was adopted in 1582.
* However, we use this calculation for all prior years as well because the
- * SQL standard specifies use of the Gregorian calendar.
+ * SQL standard specifies use of the Gregorian calendar. This prevents the
+ * date 1500-02-29 from being stored, even though it is valid in the Julian
+ * calendar.
*/
#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))