Home
last modified time | relevance | path

Searched refs:days_in_months (Results 1 – 2 of 2) sorted by relevance

/third_party/glib/glib/
Dgdate.c399 static const guint8 days_in_months[2][13] = variable
511 days_in_months[1][m] : days_in_months[0][m])) ); in g_date_valid_dmy()
1670 if (d->day == days_in_months[idx][d->month]) return TRUE; in g_date_is_last_of_month()
1762 if (d->day > days_in_months[idx][d->month]) in g_date_add_months()
1763 d->day = days_in_months[idx][d->month]; in g_date_add_months()
1811 if (d->day > days_in_months[idx][d->month]) in g_date_subtract_months()
1812 d->day = days_in_months[idx][d->month]; in g_date_subtract_months()
1929 return days_in_months[idx][month]; in g_date_get_days_in_month()
Dgdatetime.c175 static const guint16 days_in_months[2][13] = variable
1593 day < 1 || day > days_in_months[GREGORIAN_LEAP (year)][month] || in g_date_time_new()
1814 day = MIN (day, days_in_months[GREGORIAN_LEAP (year)][month]); in g_date_time_add_months()
1983 day = MIN (day, days_in_months[GREGORIAN_LEAP (year)][month]); in g_date_time_add_full()
2202 preceding -= leap ? days_in_months[1][the_month] in g_date_time_get_ymd()
2203 : days_in_months[0][the_month]; in g_date_time_get_ymd()