Searched refs:is_leap (Results 1 - 5 of 5) sorted by relevance

/fuchsia/zircon/third_party/ulib/musl/src/time/
H A D__month_to_secs.c1 int __month_to_secs(int month, int is_leap) { argument
6 if (is_leap && month >= 2)
H A D__year_to_secs.c1 long long __year_to_secs(long long year, int* is_leap) { argument
7 if (is_leap)
8 *is_leap = 1;
9 } else if (is_leap)
10 *is_leap = 0;
16 if (!is_leap)
17 is_leap = &(int){0};
25 *is_leap = 1;
41 *is_leap = 0;
46 *is_leap
[all...]
H A D__tm_to_secs.c4 int is_leap; local
16 long long t = __year_to_secs(year, &is_leap);
17 t += __month_to_secs(month, is_leap);
H A D__tz.c343 static int days_in_month(int m, int is_leap) { argument
345 return 28 + is_leap;
353 int is_leap; local
354 long long t = __year_to_secs(year, &is_leap);
358 if (rule[0] == 'J' && (x < 60 || !is_leap))
365 t += __month_to_secs(m - 1, is_leap);
370 if (n == 5 && days + 28 >= days_in_month(m, is_leap))
H A Dstrftime.c12 static int is_leap(int y) { function
32 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year % 400 - 1)))
39 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year)))

Completed in 39 milliseconds