Home
last modified time | relevance | path

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

/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dmktime.c89 #define _DAYS_IN_YEAR(year) (isleap(year+YEAR_BASE) ? 366 : 365) argument
189 int year; in mktime_utc() local
211 if ((year = tim_p->tm_year) > 70) in mktime_utc()
213 for (year = 70; year < tim_p->tm_year; year++) in mktime_utc()
214 days += _DAYS_IN_YEAR (year); in mktime_utc()
216 else if (year < 70) in mktime_utc()
218 for (year = 69; year > tim_p->tm_year; year--) in mktime_utc()
219 days -= _DAYS_IN_YEAR (year); in mktime_utc()
220 days -= _DAYS_IN_YEAR (year); in mktime_utc()
235 int year; in mktime() local
[all …]
Dtzcalc_limits.c15 __tzcalc_limits (int year) in __tzcalc_limits() argument
21 if (year < EPOCH_YEAR) in __tzcalc_limits()
24 tz->__tzyear = year; in __tzcalc_limits()
26 years = (year - EPOCH_YEAR); in __tzcalc_limits()
39 (isleap(year) && tz->__tzrule[i].d >= 60); in __tzcalc_limits()
47 const int yleap = isleap(year); in __tzcalc_limits()
Dlcltime_r.c40 int year; in localtime_r() local
46 year = res->tm_year + YEAR_BASE; in localtime_r()
47 ip = __month_lengths[isleap(year)]; in localtime_r()
53 if (year == tz->__tzyear || __tzcalc_limits (year)) in localtime_r()
Dgmtime_r.c70 int era, weekday, year; in gmtime_r() local
104 year = ADJUSTED_EPOCH_YEAR + erayear + era * YEARS_PER_ERA + (month <= 1); in gmtime_r()
109 res->tm_year = year - YEAR_BASE; in gmtime_r()
Dstrptime.c68 is_leap_year (int year) in is_leap_year() argument
70 return (year % 4) == 0 && ((year % 100) != 0 || (year % 400) == 0); in is_leap_year()
93 first_day (int year) in first_day() argument
97 while (--year >= 1970) in first_day()
98 ret = (ret + 365 + is_leap_year (year)) % 7; in first_day()
Dstrftime.c401 int year; member
494 ei->year = tim_p->tm_year - stm.tm_year + offset; in get_era_info()
496 ei->year = etm.tm_year - tim_p->tm_year + offset; in get_era_info()
960 int year = tim_p->tm_year >= 0 ? tim_p->tm_year % 100 in __strftime() local
967 ((year + adjust) % 100 + 100) % 100); in __strftime()
981 int year = tim_p->tm_year >= 0 ? tim_p->tm_year % 100 in __strftime() local
987 year += adjust; in __strftime()
988 if (year == -1) in __strftime()
990 year = 99; in __strftime()
993 else if (year == 100) in __strftime()
[all …]
/picolibc-3.7.0-3.6.0/
DCOPYING.GPL2294 Copyright (C) <year> <name of author>
316 Gnomovision version 69, Copyright (C) year name of author
/picolibc-3.7.0-3.6.0/newlib/
DREADME353 raise to the year 2038 problem. The default type for time_t is a signed
DChangeLog-2015351 * libc/machine/arm/memcpy.c: Adjust copyright year. Adjust comments.
1153 * libc/include/sys/features.h: update newlib version and copyright year
1356 after year 2069 or before year 1901. Ideas for solution taken from
4234 of the first day of the year.
18545 internal routine for calculating timezone changes for specified year.
18757 internal routine for calculating timezone changes for specified year.
21774 * libc/time/strftime.c (strftime): Handle %y after year 2000.
25221 * libc/time/localtime.c (localtime): Fix problem with leap year