Searched refs:tm_year (Results 1 - 25 of 40) sorted by relevance

12

/haiku/src/apps/poorman/libhttpd/
H A Dtdate_parse.c202 t = ( tmP->tm_year - 70 ) * 365;
204 t += ( tmP->tm_year - 69 ) / 4;
208 if ( tmP->tm_mon >= 2 && is_leap( tmP->tm_year + 1900 ) )
227 int tm_sec, tm_min, tm_hour, tm_mday, tm_year; local
245 &tm_mday, str_mon, &tm_year, &tm_hour, &tm_min,
251 tm.tm_year = tm_year;
259 &tm_mday, str_mon, &tm_year, &tm_hour, &tm_min,
265 tm.tm_year = tm_year;
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dtest_time.c51 tbuf.tm_year = 72;
78 if (tbuf.tm_year == 101)
80 tbuf.tm_year = 97;
104 loctime->tm_year = 72;
H A Dtst-mktime.c14 time_str.tm_year = 2001 - 1900;
/haiku/src/system/libroot/posix/musl/time/
H A Dasctime_r.c15 1900 + tm->tm_year) >= 26)
H A D__tm_to_secs.c6 long long year = tm->tm_year;
H A Dstrptime.c164 dest = &tm->tm_year;
217 tm->tm_year = relyear;
218 if (want_century & 2) tm->tm_year += century * 100 - 1900;
219 else if (tm->tm_year <= 68) tm->tm_year += 100;
H A Dstrftime.c33 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1)))
41 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year)))
76 val = (1900LL+tm->tm_year) / 100;
91 val = tm->tm_year + 1900LL;
164 val = (tm->tm_year + 1900LL) % 100;
168 val = tm->tm_year + 1900LL;
258 if (tm->tm_year < -1900) {
H A Dwcsftime.c47 if (plus && tm->tm_year >= 10000-1900)
49 else if (tm->tm_year < -1900)
H A D__secs_to_tm.c71 tm->tm_year = years + 100;
/haiku/src/system/kernel/arch/sparc/
H A Darch_platform.cpp191 t.tm_year += RTC_EPOCH_BASE_YEAR;
194 if (of_call_method((uint32_t)fRTC, "set-time", 6, 0, t.tm_year, t.tm_mon, t.tm_mday,
205 if (of_call_method((uint32_t)fRTC, "get-time", 0, 6, &t.tm_year, &t.tm_mon,
211 t.tm_year -= RTC_EPOCH_BASE_YEAR;
/haiku/src/kits/network/libnetservices/
H A DHttpTime.cpp140 BDate date(expireTime.tm_year + 1900, expireTime.tm_mon + 1,
157 expirationTm.tm_year = fDate.Date().Year() - 1900;
/haiku/headers/private/fs_shell/
H A Dfssh_time.h44 int tm_year; /* years since 1900 */ member in struct:fssh_tm
/haiku/src/system/kernel/arch/ppc/
H A Darch_platform.cpp191 t.tm_year += RTC_EPOCH_BASE_YEAR;
194 if (of_call_method(fRTC, "set-time", 6, 0, t.tm_year, t.tm_mon, t.tm_mday,
205 if (of_call_method(fRTC, "get-time", 0, 6, &t.tm_year, &t.tm_mon,
211 t.tm_year -= RTC_EPOCH_BASE_YEAR;
/haiku/src/kits/network/libnetapi/
H A DCertificate.cpp27 if (sscanf((char*)asn1->data, "%2d%2d%2d%2d%2d%2d", &time.tm_year,
32 time.tm_year += 100;
/haiku/src/kits/network/libnetservices2/
H A DHttpTime.cpp161 expirationTm.tm_year = fDate.Date().Year() - 1900;
212 BDate date(expireTime.tm_year + 1900, expireTime.tm_mon + 1, expireTime.tm_mday);
/haiku/src/system/libroot/os/
H A Dparsedate.cpp734 tm.tm_year += value;
746 tm.tm_year++;
748 tm.tm_year--;
775 nowYear = tm.tm_year;
829 nowYear = tmNow.tm_year;
834 tm.tm_year = element->value;
835 if (tm.tm_year < 1900) {
840 if (nowYearInCentury + 10 < tm.tm_year % 100)
841 tm.tm_year -= 100;
843 tm.tm_year
[all...]
/haiku/src/bin/unzip/
H A Dtimezone.c537 _tmbuf.tm_year = EPOCH_YEAR - TM_YEAR_BASE;
538 isleap = leap(_tmbuf.tm_year + TM_YEAR_BASE);
541 _tmbuf.tm_year++;
542 isleap = leap(_tmbuf.tm_year + TM_YEAR_BASE);
745 years = tm->tm_year + TM_YEAR_BASE; /* year - 1900 -> year */
774 tm->tm_year = years - TM_YEAR_BASE;
/haiku/src/bin/
H A Ddstcheck.cpp110 if (tm.tm_year < (2020 - 1900)) {
/haiku/headers/posix/
H A Dtime.h62 int tm_year; /* years since 1900 */ member in struct:tm
/haiku/src/system/kernel/arch/x86/
H A Darch_real_time_clock.cpp144 t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
164 wholeYear = t.tm_year + RTC_EPOCH_BASE_YEAR;
/haiku/src/system/kernel/arch/m68k/
H A Darch_real_time_clock.cpp130 t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
150 wholeYear = t.tm_year + RTC_EPOCH_BASE_YEAR;
/haiku/src/system/kernel/
H A Dreal_time_clock.cpp185 year = tm->tm_year + RTC_EPOCH_BASE_YEAR;
219 t->tm_year = year - RTC_EPOCH_BASE_YEAR;
/haiku/src/system/libroot/add-ons/icu/
H A DICUTimeConversion.cpp233 tmOut->tm_year = calendar.get(UCAL_YEAR, icuStatus) - 1900;
269 calendar.set(inOutTm->tm_year + 1900, inOutTm->tm_mon, inOutTm->tm_mday,
/haiku/src/kits/mail/
H A DHaikuMailFormatFilter.cpp177 timeFields.tm_year + 1900, timeFields.tm_mon + 1, timeFields.tm_mday,
/haiku/src/preferences/time/
H A DDateTimeView.cpp159 date.SetDate(timeInfo->tm_year + 1900, timeInfo->tm_mon + 1,

Completed in 261 milliseconds

12