/* Returns: number of days in @month during the @year  */
guint8 g_date_get_days_in_month(GDateMonth month, GDateYear year)
/* Returns: number of days in @month during the @year  */
guint8 g_date_get_days_in_month(GDateMonth month, GDateYear year)
{
  gint idx;
  g_return_val_if_fail (g_date_valid_year (year), 0);
  g_return_val_if_fail (g_date_valid_month (month), 0);
  idx = g_date_is_leap_year (year) ? 1 : 0;
  return days_in_months[idx][month];
}