/* Returns: TRUE if the year is a leap year  */
gboolean g_date_is_leap_year(GDateYear year)
/* Returns: TRUE if the year is a leap year  */
gboolean g_date_is_leap_year(GDateYear year)
{
  g_return_val_if_fail (g_date_valid_year (year), FALSE);
  return ( (((year % 4) == 0) && ((year % 100) != 0)) ||
           (year % 400) == 0 );
}