Home
last modified time | relevance | path

Searched refs:days_in_year (Results 1 – 5 of 5) sorted by relevance

/third_party/glib/tests/
Dtestgdate.c170 guint16 days_in_year = g_date_is_leap_year(y) ? 366 : 365; in main() local
247 g_date_get_day_of_year(d) == days_in_year); in main()
251 g_date_get_day_of_year(d), days_in_year); in main()
256 g_date_get_day_of_year(d) <= days_in_year); in main()
/third_party/glib/glib/tests/
Ddate.c523 guint16 days_in_year = g_date_is_leap_year (y) ? 366 : 365; in test_year() local
571 g_assert_cmpint (g_date_get_day_of_year (d), ==, days_in_year); in test_year()
573 g_assert_cmpint (g_date_get_day_of_year (d), <=, days_in_year); in test_year()
/third_party/glib/glib/
Dgdatetime.c181 static const guint16 days_in_year[2][13] = variable
610 days += days_in_year[0][month - 1]; in ymd_to_days()
2197 preceding = (days_in_year[0][the_month - 1] + (the_month > 2 && leap)); in g_date_time_get_ymd()
2286 days = days_in_year[GREGORIAN_LEAP (g_date_time_get_year (datetime)) ? 1 : 0]; in g_date_time_get_day_of_month()
Dgdate.c405 static const guint16 days_in_year[2][14] = variable
546 d->julian_days += days_in_year[idx][d->month] + d->day; in g_date_update_julian()
731 return (days_in_year[idx][d->month] + d->day); in g_date_get_day_of_year()
/third_party/quickjs/
Dquickjs.c47825 static int64_t days_in_year(int64_t y) { in days_in_year() function
47839 d1 += days_in_year(y); in year_from_days()
47841 nd = days_in_year(y); in year_from_days()
47892 md += days_in_year(y) - 365; in get_date_fields()
47933 md += days_in_year(y) - 365; in set_date_fields()