/third_party/musl/libc-test/src/functional/ |
D | strptime.c | 29 tm.tm_year != expected->tm_year) { in checkStrptime() 59 .tm_year = 0, 68 .tm_year = 1991 - 1900, 77 .tm_year = 2015 - 1900, 86 .tm_year = 1856 - 1900,
|
D | strftime.c | 26 .tm_year = 2016 - 1900, 38 .tm_year = 10009 - 1900, 50 .tm_year = 0 - 1900, 62 .tm_year = -123 - 1900, 74 .tm_year = INT_MAX,
|
D | time.c | 20 tm1.tm_year != tm2.tm_year || in tm_cmp() 34 tm.tm_mday, tm.tm_mon, tm.tm_year, in tm_str() 41 .tm_mday = md, .tm_mon = mo, .tm_year = yr, \
|
/third_party/nghttp2/src/ |
D | timegm.c | 44 num_leap_year = count_leap_year(tm->tm_year + 1900) - count_leap_year(1970); in nghttp2_timegm() 45 days = (tm->tm_year - 70) * 365 + num_leap_year + tm->tm_yday; in nghttp2_timegm() 73 num_leap_year = count_leap_year(tm->tm_year + 1900) - count_leap_year(1970); in nghttp2_timegm_without_yday() 74 days = (tm->tm_year - 70) * 365 + num_leap_year + daysum[tm->tm_mon] + in nghttp2_timegm_without_yday() 76 if (tm->tm_mon >= 2 && is_leap_year(tm->tm_year + 1900)) { in nghttp2_timegm_without_yday()
|
/third_party/boost/libs/locale/src/util/ |
D | gregorian.cpp | 76 int year = t->tm_year + 1900; in internal_timegm() 175 tm_updated_.tm_year = value - 1900; in set_value() 331 return tm_.tm_year + 1900; in get_value() 359 return days_in_month(tm_.tm_year + 1900,tm_.tm_mon + 1); in get_value() 375 return is_leap(tm_.tm_year + 1900) ? 366 : 365; in get_value() 493 int year = tm_.tm_year + 1900; in get_value() 518 … int end_of_month_days = days_in_month(tm_.tm_year + 1900,tm_.tm_mon + 1); in get_value() 542 if(tm_.tm_mon == 1 && !is_leap(tm_.tm_year + 1900)) { in get_value() 615 tm_updated_.tm_year +=difference; in adjust_value() 713 int diff = other->tm_.tm_year - tm_.tm_year; in difference() [all …]
|
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/ |
D | ssl_wrapper.cc | 169 t.tm_year = (str[i++] - '0') * kBase; in ConvertAsn1Time() 170 t.tm_year += (str[i++] - '0'); in ConvertAsn1Time() 171 if (t.tm_year < kSeventyYear) { in ConvertAsn1Time() 172 t.tm_year += kHundredYear; in ConvertAsn1Time() 175 t.tm_year = (str[i++] - '0') * kThousandYear; in ConvertAsn1Time() 176 t.tm_year += (str[i++] - '0') * kHundredYear; in ConvertAsn1Time() 177 t.tm_year += (str[i++] - '0') * kBase; in ConvertAsn1Time() 178 t.tm_year += (str[i++] - '0'); in ConvertAsn1Time() 179 t.tm_year -= kBaseYear; in ConvertAsn1Time()
|
/third_party/openssl/crypto/asn1/ |
D | a_time.c | 53 int y = tm->tm_year + 1900; in determine_days() 152 tmp.tm_year = n * 100 - 1900; in asn1_time_to_tm() 156 tmp.tm_year = n < 50 ? n + 100 : n; in asn1_time_to_tm() 158 tmp.tm_year += n; in asn1_time_to_tm() 167 md = mdays[1] + leap_year(tmp.tm_year + 1900); in asn1_time_to_tm() 272 if (is_utc(ts->tm_year)) in asn1_time_from_tm() 277 if (!is_utc(ts->tm_year)) in asn1_time_from_tm() 298 ts->tm_year + 1900, ts->tm_mon + 1, in asn1_time_from_tm() 303 ts->tm_year % 100, ts->tm_mon + 1, in asn1_time_from_tm() 413 if (is_utc(tm.tm_year)) { in ASN1_TIME_set_string_X509() [all …]
|
/third_party/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc02.c | 32 tm->tm_year + 1900, in rtctime_to_str() 48 && (set_tm->tm_year == read_tm->tm_year)); in rtc_tm_cmp() 62 .tm_year = 120, in set_rtc_test()
|
/third_party/musl/src/time/ |
D | strftime.c | 32 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) in week_num() 39 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year))) in week_num() 74 val = (1900LL+tm->tm_year) / 100; in __strftime_fmt_1() 89 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 162 val = (tm->tm_year + 1900LL) % 100; in __strftime_fmt_1() 166 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 255 if (tm->tm_year < -1900) { in __strftime_l()
|
D | strptime.c | 152 dest = &tm->tm_year; in strptime() 201 tm->tm_year = relyear; in strptime() 202 if (want_century & 2) tm->tm_year += century * 100 - 1900; in strptime() 203 else if (tm->tm_year <= 68) tm->tm_year += 100; in strptime()
|
/third_party/musl/porting/liteos_a/kernel/src/time/ |
D | strftime.c | 32 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) in week_num() 39 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year))) in week_num() 74 val = (1900LL+tm->tm_year) / 100; in __strftime_fmt_1() 89 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 162 val = (tm->tm_year + 1900LL) % 100; in __strftime_fmt_1() 166 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 255 if (tm->tm_year < -1900) { in __strftime_l()
|
D | strptime.c | 152 dest = &tm->tm_year; in strptime() 201 tm->tm_year = relyear; in strptime() 202 if (want_century & 2) tm->tm_year += century * 100 - 1900; in strptime() 203 else if (tm->tm_year <= 68) tm->tm_year += 100; in strptime()
|
/third_party/musl/porting/uniproton/kernel/src/time/ |
D | strftime.c | 32 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) in week_num() 39 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year))) in week_num() 74 val = (1900LL+tm->tm_year) / 100; in __strftime_fmt_1() 89 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 162 val = (tm->tm_year + 1900LL) % 100; in __strftime_fmt_1() 166 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 255 if (tm->tm_year < -1900) { in __strftime_l()
|
D | strptime.c | 152 dest = &tm->tm_year; in strptime() 201 tm->tm_year = relyear; in strptime() 202 if (want_century & 2) tm->tm_year += century * 100 - 1900; in strptime() 203 else if (tm->tm_year <= 68) tm->tm_year += 100; in strptime()
|
/third_party/musl/porting/liteos_m/kernel/src/time/ |
D | strftime.c | 32 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) in week_num() 39 if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year))) in week_num() 74 val = (1900LL+tm->tm_year) / 100; in __strftime_fmt_1() 89 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 162 val = (tm->tm_year + 1900LL) % 100; in __strftime_fmt_1() 166 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 255 if (tm->tm_year < -1900) { in __strftime_l()
|
D | strptime.c | 152 dest = &tm->tm_year; in strptime() 201 tm->tm_year = relyear; in strptime() 202 if (want_century & 2) tm->tm_year += century * 100 - 1900; in strptime() 203 else if (tm->tm_year <= 68) tm->tm_year += 100; in strptime()
|
/third_party/musl/porting/linux/user/src/time/ |
D | strftime.c | 60 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) in week_num() 67 if (jan1 != __DAY_LAST_WEEK__ && (jan1 != 3 || !is_leap(tm->tm_year))) in week_num() 106 val = (1900LL+tm->tm_year) / __YEARS_PER_CENTURY__; in __strftime_fmt_1() 121 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 222 val = (tm->tm_year + 1900LL) % 100; in __strftime_fmt_1() 228 val = tm->tm_year + 1900LL; in __strftime_fmt_1() 339 if (tm->tm_year < -1900) { in __strftime_l()
|
D | strptime.c | 203 dest = &tm->tm_year; in strptime() 369 dest = &tm->tm_year; in strptime() 443 tm->tm_year = relyear; in strptime() 445 tm->tm_year += century * __STRPTIME_YEARS_PER_CENTURY - __STRPTIME_EPOCH; in strptime() 447 else if (tm->tm_year <= 68) tm->tm_year += __STRPTIME_YEARS_PER_CENTURY; in strptime()
|
/third_party/gettext/gettext-tools/src/ |
D | po-time.c | 34 int ay = a->tm_year + TM_YEAR_ORIGIN - 1; in difftm() 35 int by = b->tm_year + TM_YEAR_ORIGIN - 1; in difftm() 69 local_time.tm_year + TM_YEAR_ORIGIN, in po_strftime()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_date_time.cpp | 707 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()
|
/third_party/glib/glib/ |
D | gtimer.c | 342 retval = (tm->tm_year - 70) * 365; in mktime_utc() 343 retval += (tm->tm_year - 68) / 4; in mktime_utc() 346 if (tm->tm_year % 4 == 0 && tm->tm_mon < 2) in mktime_utc() 442 tm.tm_year = year - 1900; in g_time_val_from_iso8601() 629 tm->tm_year + 1900, in g_time_val_to_iso8601() 643 tm->tm_year + 1900, in g_time_val_to_iso8601()
|
/third_party/e2fsprogs/debugfs/ |
D | util.c | 255 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()
|
/third_party/musl/libc-test/src/functionalext/time/ |
D | strptime_ext.c | 94 (tmTime.tm_year+gYearBase), tmTime.tm_mon, tmTime.tm_mday, tmTime.tm_hour, in strptime_0200() 115 (tmTime.tm_year+gYearBase), tmTime.tm_mon + 1, tmTime.tm_mday); in strptime_0300() 132 int cnt = sprintf(buffResult, "%d", tmTime.tm_year); in strptime_0400() 227 (tmTime.tm_year+gYearBase), tmTime.tm_mon, tmTime.tm_mday); in strptime_0900()
|
/third_party/toybox/toys/posix/ |
D | cal.c | 47 int year = tm->tm_year; in calstrings() 81 tm->tm_year = atolx_range(toys.optargs[--toys.optc], 1, 9999); in cal_main() 82 tm->tm_year -= 1900; in cal_main()
|
/third_party/libwebsockets/lib/roles/http/ |
D | cookie.c | 102 if (!date.tm_year) { in lws_cookie_parse_date() 103 date.tm_year = atoi(d - 2); in lws_cookie_parse_date() 104 if (date.tm_year < 0 || date.tm_year > 99) in lws_cookie_parse_date() 106 if (date.tm_year < 70) in lws_cookie_parse_date() 107 date.tm_year += 100; in lws_cookie_parse_date() 123 if (!date.tm_year) { in lws_cookie_parse_date() 124 date.tm_year = atoi(d - 4); in lws_cookie_parse_date() 125 if (date.tm_year < 1601) in lws_cookie_parse_date() 127 date.tm_year -= 1900; in lws_cookie_parse_date()
|