Home
last modified time | relevance | path

Searched refs:year (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/bionic/
Dtime64.c183 static int is_exception_century(Year year) in is_exception_century() argument
185 int is_exception = ((year % 100 == 0) && !(year % 400 == 0)); in is_exception_century()
199 Year year; in timegm64() local
216 year = 70; in timegm64()
217 while( year < orig_year ) { in timegm64()
218 days += length_of_year[IS_LEAP(year)]; in timegm64()
219 year++; in timegm64()
223 year = 69; in timegm64()
225 days -= length_of_year[IS_LEAP(year)]; in timegm64()
226 year--; in timegm64()
[all …]
/bionic/libc/tzcode/
Dasctime.c83 char year[INT_STRLEN_MAXIMUM(int) + 2]; in asctime_r() local
102 strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
107 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), in asctime_r()
111 year); in asctime_r()
Dstrftime.c414 int year; in _fmt() local
420 year = t->tm_year; in _fmt()
429 len = isleap_sum(year, base) ? in _fmt()
458 yday += isleap_sum(year, base) ? in _fmt()
474 pt = _yconv(year, base, in _fmt()
477 } else pt = _yconv(year, base, in _fmt()
Dlocaltime.c923 transtime(const int year, register const struct rule *const rulep, in transtime() argument
932 leapyear = isleap(year); in transtime()
967 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year; in transtime()
1084 register int year; in tzparse() local
1108 for (year = EPOCH_YEAR; year < yearlim; year++) { in tzparse()
1110 starttime = transtime(year, &start, stdoffset), in tzparse()
1111 endtime = transtime(year, &end, dstoffset); in tzparse()
1113 yearsecs = (year_lengths[isleap(year)] in tzparse()
1128 yearlim = year + YEARSPERREPEAT + 1; in tzparse()
/bionic/libc/upstream-openbsd/lib/libc/time/
Dwcsftime.c345 int year; in _fmt() local
351 year = t->tm_year; in _fmt()
360 len = isleap_sum(year, base) ? in _fmt()
385 yday += isleap_sum(year, base) ? in _fmt()
396 pt = _yconv(year, base, 0, 1, pt, ptlim); in _fmt()
398 pt = _yconv(year, base, 1, 1, pt, ptlim); in _fmt()
/bionic/docs/
Ddefines.md32 that for most of the year, the OS builds with this set to 10,000 rather than the