Home
last modified time | relevance | path

Searched refs:tm_year (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/external/llvm-project/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_year.pass.cpp46 assert(t.tm_year == 100); in main()
55 assert(t.tm_year == 100); in main()
64 assert(t.tm_year == 101); in main()
73 assert(t.tm_year == 168); in main()
82 assert(t.tm_year == 69); in main()
91 assert(t.tm_year == 99); in main()
100 assert(t.tm_year == -1800); in main()
109 assert(t.tm_year == 0); in main()
118 assert(t.tm_year == 68); in main()
127 assert(t.tm_year == 100); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_year.pass.cpp45 assert(t.tm_year == 100); in main()
54 assert(t.tm_year == 100); in main()
63 assert(t.tm_year == 101); in main()
72 assert(t.tm_year == 168); in main()
81 assert(t.tm_year == 69); in main()
90 assert(t.tm_year == 99); in main()
99 assert(t.tm_year == -1800); in main()
108 assert(t.tm_year == 0); in main()
117 assert(t.tm_year == 68); in main()
126 assert(t.tm_year == 100); in main()
[all …]
/external/libchrome/base/third_party/nspr/
Dprtime.cc151 numDays = DAYS_BETWEEN_YEARS(1970, copy.tm_year); in PR_ImplodeTime()
232 time->tm_year--; in ApplySecOffset()
233 if (IsLeapYear(time->tm_year)) in ApplySecOffset()
238 time->tm_mday = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in ApplySecOffset()
249 nDays[IsLeapYear(time->tm_year)][time->tm_month]) { in ApplySecOffset()
254 time->tm_year++; in ApplySecOffset()
317 time->tm_year += static_cast<PRInt16>(time->tm_month / 12); in PR_NormalizeTime()
321 time->tm_year--; in PR_NormalizeTime()
334 time->tm_year--; in PR_NormalizeTime()
336 time->tm_mday += nDays[IsLeapYear(time->tm_year)][time->tm_month]; in PR_NormalizeTime()
[all …]
/external/openscreen/platform/impl/
Dtime_unittest.cc29 epoch_tm.tm_year = 70; // 1970 in TEST()
42 epoch_tm.tm_year += epoch_tm.tm_year - wrong_tm->tm_year; in TEST()
/external/linux-kselftest/tools/testing/selftests/rtc/
Dsetdate.c47 sscanf(date, "%d-%d-%d", &new.tm_mday, &new.tm_mon, &new.tm_year); in main()
49 new.tm_year -= 1900; in main()
53 new.tm_mday, new.tm_mon + 1, new.tm_year + 1900, in main()
72 current.tm_mday, current.tm_mon + 1, current.tm_year + 1900, in main()
/external/toybox/toys/posix/
Dcal.c54 int year = tm->tm_year;
64 if (!FLAG(h) && tm->tm_year == TT.now->tm_year &&
97 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); in cal_main()
98 tm->tm_year -= 1900; in cal_main()
/external/boringssl/src/crypto/asn1/
Da_utctm.c107 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm()
214 if ((ts->tm_year < 50) || (ts->tm_year >= 150)) in ASN1_UTCTIME_adj()
229 BIO_snprintf(p, len, "%02d%02d%02d%02d%02d%02dZ", ts->tm_year % 100, in ASN1_UTCTIME_adj()
275 tm.tm_year = g2(s->data);
276 if (tm.tm_year < 50)
277 tm.tm_year += 100;
/external/rust/crates/quiche/deps/boringssl/src/crypto/asn1/
Da_utctm.c107 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm()
214 if ((ts->tm_year < 50) || (ts->tm_year >= 150)) in ASN1_UTCTIME_adj()
229 BIO_snprintf(p, len, "%02d%02d%02d%02d%02d%02dZ", ts->tm_year % 100, in ASN1_UTCTIME_adj()
275 tm.tm_year = g2(s->data);
276 if (tm.tm_year < 50)
277 tm.tm_year += 100;
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_year.pass.cpp52 assert(t.tm_year == 109); in main()
62 assert(t.tm_year == 109); in main()
72 assert(t.tm_year == 109); in main()
82 assert(t.tm_year == 109); in main()
Dget_year_wide.pass.cpp52 assert(t.tm_year == 109); in main()
62 assert(t.tm_year == 109); in main()
72 assert(t.tm_year == 109); in main()
82 assert(t.tm_year == 109); in main()
Dget_date.pass.cpp62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
99 assert(t.tm_year == 109); in main()
Dget_date_wide.pass.cpp62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
98 assert(t.tm_year == 109); in main()
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_year.pass.cpp53 assert(t.tm_year == 109); in main()
63 assert(t.tm_year == 109); in main()
73 assert(t.tm_year == 109); in main()
83 assert(t.tm_year == 109); in main()
Dget_year_wide.pass.cpp53 assert(t.tm_year == 109); in main()
63 assert(t.tm_year == 109); in main()
73 assert(t.tm_year == 109); in main()
83 assert(t.tm_year == 109); in main()
Dget_date.pass.cpp62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
99 assert(t.tm_year == 109); in main()
Dget_date_wide.pass.cpp62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
98 assert(t.tm_year == 109); in main()
/external/rust/crates/zip/src/
Dtypes.rs124 if tm.tm_year >= 80 in from_time()
125 && tm.tm_year <= 207 in from_time()
138 year: (tm.tm_year + 1900) as u16, in from_time()
171 tm_year: self.year as i32 - 1900, in to_time()
372 tm_year: 79, // 1979 - 1900 = 79 in datetime_from_time_bounds()
384 tm_year: 80, // 1980 - 1900 = 80 in datetime_from_time_bounds()
396 tm_year: 207, // 2107 - 1900 = 207 in datetime_from_time_bounds()
408 tm_year: 208, // 2108 - 1900 = 208 in datetime_from_time_bounds()
/external/dng_sdk/source/
Ddng_date_time.cpp707 dt.fYear = t.tm_year + 1900; in CurrentDateTimeAndZone()
719 bool zonePositive = (t.tm_year > zt.tm_year) || in CurrentDateTimeAndZone()
720 (t.tm_year == zt.tm_year && t.tm_yday > zt.tm_yday) || in CurrentDateTimeAndZone()
721 (t.tm_year == zt.tm_year && t.tm_yday == zt.tm_yday && tzHour > 0) || in CurrentDateTimeAndZone()
722 (t.tm_year == zt.tm_year && t.tm_yday == zt.tm_yday && tzHour == 0 && tzMin >= 0); in CurrentDateTimeAndZone()
787 dt.fYear = t.tm_year + 1900; in DecodeUnixTime()
/external/rust/crates/chrono/src/sys/
Dunix.rs36 tm.tm_year = rust_tm.tm_year; in rust_tm_to_tm()
48 rust_tm.tm_year = tm.tm_year; in tm_to_rust_tm()
/external/e2fsprogs/debugfs/
Dutil.c255 sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon, in string_to_time()
257 ts.tm_year -= 1900; in string_to_time()
259 if (ts.tm_year < 0 || ts.tm_mon < 0 || ts.tm_mon > 11 || in string_to_time()
280 ((__s64) ts.tm_year-70)*31536000 + in string_to_time()
281 (((__s64) ts.tm_year-69)/4)*86400 - in string_to_time()
282 (((__s64) ts.tm_year-1)/100)*86400 + in string_to_time()
283 (((__s64) ts.tm_year+299)/400)*86400; in string_to_time()
/external/tcpdump/
Dgmt2local.c60 dir = loc->tm_year - gmt->tm_year; in gmt2local()
/external/abseil-cpp/absl/time/
Dtime.cc434 civil_year_t tm_year = tm.tm_year; in FromTM() local
436 if (tm_year > 300000000000ll) return InfiniteFuture(); in FromTM()
437 if (tm_year < -300000000000ll) return InfinitePast(); in FromTM()
441 tm_year += 1; in FromTM()
443 const auto ti = tz.At(CivilSecond(tm_year + 1900, tm_mon + 1, tm.tm_mday, in FromTM()
462 tm.tm_year = std::numeric_limits<int>::min(); in ToTM()
464 tm.tm_year = std::numeric_limits<int>::max() - 1900; in ToTM()
466 tm.tm_year = static_cast<int>(cs.year() - 1900); in ToTM()
/external/angle/third_party/abseil-cpp/absl/time/
Dtime.cc435 civil_year_t tm_year = tm.tm_year; in FromTM() local
437 if (tm_year > 300000000000ll) return InfiniteFuture(); in FromTM()
438 if (tm_year < -300000000000ll) return InfinitePast(); in FromTM()
442 tm_year += 1; in FromTM()
444 const auto ti = tz.At(CivilSecond(tm_year + 1900, tm_mon + 1, tm.tm_mday, in FromTM()
463 tm.tm_year = std::numeric_limits<int>::min(); in ToTM()
465 tm.tm_year = std::numeric_limits<int>::max() - 1900; in ToTM()
467 tm.tm_year = static_cast<int>(cs.year() - 1900); in ToTM()
/external/libtextclassifier/abseil-cpp/absl/time/
Dtime.cc434 civil_year_t tm_year = tm.tm_year; in FromTM() local
436 if (tm_year > 300000000000ll) return InfiniteFuture(); in FromTM()
437 if (tm_year < -300000000000ll) return InfinitePast(); in FromTM()
441 tm_year += 1; in FromTM()
443 const auto ti = tz.At(CivilSecond(tm_year + 1900, tm_mon + 1, tm.tm_mday, in FromTM()
462 tm.tm_year = std::numeric_limits<int>::min(); in ToTM()
464 tm.tm_year = std::numeric_limits<int>::max() - 1900; in ToTM()
466 tm.tm_year = static_cast<int>(cs.year() - 1900); in ToTM()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime.cc434 civil_year_t tm_year = tm.tm_year; in FromTM() local
436 if (tm_year > 300000000000ll) return InfiniteFuture(); in FromTM()
437 if (tm_year < -300000000000ll) return InfinitePast(); in FromTM()
441 tm_year += 1; in FromTM()
443 const auto ti = tz.At(CivilSecond(tm_year + 1900, tm_mon + 1, tm.tm_mday, in FromTM()
462 tm.tm_year = std::numeric_limits<int>::min(); in ToTM()
464 tm.tm_year = std::numeric_limits<int>::max() - 1900; in ToTM()
466 tm.tm_year = static_cast<int>(cs.year() - 1900); in ToTM()

12345678910>>...13