Home
last modified time | relevance | path

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

123456

/external/libcxx/test/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 …]
Dget_many.pass.cpp47 assert(t.tm_year == 109); in main()
61 assert(t.tm_year == 109); in main()
/external/chromium_org/base/third_party/nspr/
Dprtime.cc114 st.wYear = exploded->tm_year; in PR_ImplodeTime()
143 gregorian_date.year = exploded->tm_year; in PR_ImplodeTime()
169 exp_tm.tm_year = exploded->tm_year - 1900; in PR_ImplodeTime()
176 !(exploded->tm_year == 1969 && exploded->tm_month == 11 && in PR_ImplodeTime()
182 if (exploded->tm_year >= 1970) in PR_ImplodeTime()
298 time->tm_year--; in ApplySecOffset()
299 if (IsLeapYear(time->tm_year)) in ApplySecOffset()
304 time->tm_mday = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in ApplySecOffset()
315 nDays[IsLeapYear(time->tm_year)][time->tm_month]) { in ApplySecOffset()
320 time->tm_year++; in ApplySecOffset()
[all …]
/external/stlport/test/unit/
Dtime_facets_test.cpp68 CPPUNIT_ASSERT( other.tm_year == xmas.tm_year ); in _time_put_get()
93 CPPUNIT_ASSERT( yet_more.tm_year == xmas.tm_year ); in _time_put_get()
106 CPPUNIT_ASSERT( yet_more.tm_year == xmas.tm_year ); in _time_put_get()
151 CPPUNIT_ASSERT( other.tm_year == xmas.tm_year ); in _time_put_get()
176 CPPUNIT_ASSERT( yet_more.tm_year == xmas.tm_year ); in _time_put_get()
189 CPPUNIT_ASSERT( yet_more.tm_year == xmas.tm_year ); in _time_put_get()
/external/openssl/crypto/
Do_time.c207 result->tm_year = time_values.year - 1900; in OPENSSL_gmtime()
265 time_year = tm->tm_year + 1900; in OPENSSL_gmtime_adj()
286 tm->tm_year = time_year - 1900; in OPENSSL_gmtime_adj()
355 if ((tm1.tm_year == tm2.tm_year) && in check_time()
364 tm2.tm_mday, tm2.tm_mon + 1, tm2.tm_year + 1900, in check_time()
367 tm1.tm_mday, tm1.tm_mon + 1, tm1.tm_year + 1900, in check_time()
/external/chromium_org/third_party/boringssl/src/crypto/asn1/
Da_utctm.c136 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm()
248 if((ts->tm_year < 50) || (ts->tm_year >= 150)) in ASN1_UTCTIME_adj()
265 BIO_snprintf(p,len,"%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, in ASN1_UTCTIME_adj()
312 tm.tm_year=g2(s->data);
313 if(tm.tm_year < 50)
314 tm.tm_year+=100;
Da_gentm.c104 tm->tm_year = n * 100 - 1900; in asn1_generalizedtime_to_tm()
107 tm->tm_year += n; in asn1_generalizedtime_to_tm()
247 BIO_snprintf(p,len,"%04d%02d%02d%02d%02d%02dZ",ts->tm_year + 1900, in ASN1_GENERALIZEDTIME_adj()
/external/libcxx/test/localization/locale.categories/category.time/locale.time.get.byname/
Dget_year.pass.cpp47 assert(t.tm_year == 109); in main()
57 assert(t.tm_year == 109); in main()
67 assert(t.tm_year == 109); in main()
77 assert(t.tm_year == 109); in main()
Dget_year_wide.pass.cpp47 assert(t.tm_year == 109); in main()
57 assert(t.tm_year == 109); in main()
67 assert(t.tm_year == 109); in main()
77 assert(t.tm_year == 109); in main()
Dget_date_wide.pass.cpp50 assert(t.tm_year == 109); in main()
62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
Dget_date.pass.cpp50 assert(t.tm_year == 109); in main()
62 assert(t.tm_year == 109); in main()
74 assert(t.tm_year == 109); in main()
86 assert(t.tm_year == 109); in main()
Dget_one.pass.cpp52 assert(t.tm_year == 161); in main()
80 assert(t.tm_year == 161); in main()
115 assert(t.tm_year == 161); in main()
144 assert(t.tm_year == 161); in main()
Dget_one_wide.pass.cpp52 assert(t.tm_year == 161); in main()
80 assert(t.tm_year == 161); in main()
114 assert(t.tm_year == 161); in main()
145 assert(t.tm_year == 161); in main()
/external/openssl/crypto/asn1/
Da_utctm.c220 if((ts->tm_year < 50) || (ts->tm_year >= 150)) in ASN1_UTCTIME_adj()
237 BIO_snprintf(p,len,"%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, in ASN1_UTCTIME_adj()
283 return_cmp(year, tm->tm_year); in ASN1_UTCTIME_cmp_time_t()
305 tm.tm_year=g2(s->data);
306 if(tm.tm_year < 50)
307 tm.tm_year+=100;
/external/tcpdump/
Dgmt2local.c65 dir = loc->tm_year - gmt->tm_year; in gmt2local()
/external/zlib/src/contrib/minizip/
Dminiunz.c108 if (tmu_date.tm_year > 1900)
109 newdate.tm_year=tmu_date.tm_year - 1900;
111 newdate.tm_year=tmu_date.tm_year ;
294 (uLong)file_info.tmu_date.tm_year % 100,
/external/chromium_org/third_party/zlib/contrib/minizip/
Dminiunz.c95 if (tmu_date.tm_year > 1900)
96 newdate.tm_year=tmu_date.tm_year - 1900;
98 newdate.tm_year=tmu_date.tm_year ;
281 (uLong)file_info.tmu_date.tm_year % 100,
/external/libcxx/test/input.output/iostream.format/ext.manip/
Dget_time.pass.cpp52 assert(t.tm_year == 161); in main()
68 assert(t.tm_year == 161); in main()
Dput_time.pass.cpp63 t.tm_year = 161; in main()
78 t.tm_year = 161; in main()
/external/stlport/stlport/stl/
D_time_facets.c250 bool __pr = __get_decimal_integer(__first, __last, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in _STLP_WEAK()
257 bool __pr = __get_decimal_integer(__first, __last, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in _STLP_WEAK()
258 __t->tm_year -= 1900; in _STLP_WEAK()
356 bool __pr = _STLP_PRIV __get_decimal_integer(__s, __end, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in do_get_year()
357 __t->tm_year -= 1900; in do_get_year()
/external/icu/icu4c/source/tools/tzcode/
Dzdump.c207 (void) fprintf(stderr, " year=%d", tmp->tm_year);
727 if (newp->tm_year < oldp->tm_year)
730 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy)
853 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
854 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR +
938 trail = loc.tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptimeICU()
939 lead = loc.tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + trail / DIVISOR; in dumptimeICU()
/external/chromium_org/third_party/icu/source/tools/tzcode/
Dzdump.c207 (void) fprintf(stderr, " year=%d", tmp->tm_year);
727 if (newp->tm_year < oldp->tm_year)
730 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy)
853 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR;
854 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR +
938 trail = loc.tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptimeICU()
939 lead = loc.tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + trail / DIVISOR; in dumptimeICU()
/external/qemu/hw/timer/
Dmc146818rtc.c299 tm->tm_year = rtc_from_bcd(s, s->cmos_data[RTC_YEAR]) + s->base_year - 1900; in rtc_set_time()
321 year = (tm->tm_year - s->base_year) % 100; in rtc_copy_date()
363 tm->tm_year + 1900); in rtc_next_second()
372 tm->tm_year++; in rtc_next_second()
504 val = rtc_to_bcd(s, (tm.tm_year / 100) + 19); in rtc_set_date_from_host()
522 qemu_put_be32(f, s->current_tm.tm_year); in rtc_save()
548 s->current_tm.tm_year=qemu_get_be32(f); in rtc_load()
/external/ipsec-tools/src/racoon/
Dbackupsa.c419 tm->tm_year = str2num(p, len); in str2tmx()
420 if (tm->tm_year == -1 || tm->tm_year < 1900) in str2tmx()
422 tm->tm_year -= 1900; in str2tmx()
/external/chromium_org/third_party/boringssl/src/crypto/
Dtime_support.c123 time_year = tm->tm_year + 1900; in julian_adj()
157 tm->tm_year = time_year - 1900; in OPENSSL_gmtime_adj()

123456