src/lib/btime.c
int tm_ldom(int month, int year)
{                     /* jan feb mar apr may jun jul aug sep oct nov dec */
   static int dom[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

   if (is_leap_year(year) && month == 1) return 28;
   return dom[month] - 1;
}
/*
 * Return the last day of the month, base 0
 *   month=0-11, year is actual year
 *   ldom is base 0
 */
Return the last day of the month, base 0
month=0-11, year is actual year
ldom is base 0
Return the last day of the month base 0 month = 0 - 11 year is actual year ldom is base 0
int tm_ldom(int month, int year)
{                     
   static int dom[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
   if (is_leap_year(year) && month == 1) return 28;
   return dom[month] - 1;
}
int tm_ldom ( int month , int year ) { static int dom [ 12 ] = { 31 , 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31 } ; if ( is_leap_year ( year ) && month == 1 ) return 28 ; return dom [ month ] - 1 ; }
Return the last day of the month, base 0
   month=0-11, year is actual year
   ldom is base 0
Return the last day of the month base 0 month = 0 - 11 year is actual year ldom is base 0
/* jan feb mar apr may jun jul aug sep oct nov dec */