/reactos/modules/rostests/winetests/msvcrt/ |
H A D | time.c | 88 return tm->tm_year; in get_test_year() 224 my_tm.tm_year = year; in test_mktime() 239 ok( my_tm.tm_year == sav_tm.tm_year && my_tm.tm_mon == sav_tm.tm_mon && in test_mktime() 253 ok( my_tm.tm_year == sav_tm.tm_year && my_tm.tm_mon == sav_tm.tm_mon && in test_mktime() 263 my_tm.tm_year += 1; in test_mktime() 267 ok( my_tm.tm_year == sav_tm.tm_year && my_tm.tm_mon == sav_tm.tm_mon && in test_mktime() 277 my_tm.tm_year -= 1; in test_mktime() 281 ok( my_tm.tm_year == sav_tm.tm_year && my_tm.tm_mon == sav_tm.tm_mon && in test_mktime() 291 my_tm.tm_year = 69; in test_mktime() 862 gmt_tm->tm_year = -1; in test_asctime() [all …]
|
/reactos/sdk/lib/crt/sys_stat/ |
H A D | systime.c | 27 tp->tm_year = Time.wYear - 1900; in _getsystime() 44 if (tp->tm_year % 4 == 0) { in _getsystime() 45 if (tp->tm_year % 100 != 0) in _getsystime() 47 else if ((tp->tm_year-100) % 1000 == 0) in _getsystime() 65 Time.wYear = tp->tm_year + 1900; in _setsystime()
|
/reactos/sdk/lib/3rdparty/stlport/test/unit/ |
H A D | time_facets_test.cpp | 68 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()
|
/reactos/sdk/lib/crt/time/ |
H A D | mktime.c | 28 ptm->tm_year -= 1 + mons / 12; in mktime_worker() 34 ptm->tm_year += (mons / 12); in mktime_worker() 39 if (ptm->tm_year < 70 || ptm->tm_year > 139) // FIXME: max year for 64 bits in mktime_worker() 44 years = ptm->tm_year - 70; in mktime_worker()
|
H A D | asctime.c | 92 buf->Year[0] = IntToChar2(ptm->tm_year / 100 + HUNDREDYEAROFFSET); in FillBuf() 93 buf->Year[1] = IntToChar2(ptm->tm_year % 100); in FillBuf() 118 (unsigned int)ptm->tm_year > 2038 || in _tasctime_s()
|
H A D | strftime.c | 17 st.wYear = mstm->tm_year + 1900; in strftime_date() 49 st.wYear = mstm->tm_year + 1900; in strftime_time() 236 if(!strftime_int(str, &ret, max, mstm->tm_year%100, alternate ? 0 : 2, 0, 99)) in _Strftime() 240 tmp = 1900+mstm->tm_year; in _Strftime()
|
H A D | gmtime.c | 52 ptm->tm_year = years - 299; in _gmtime_worker()
|
H A D | timezone.c | 193 _tm.tm_year = 70; in _tzset()
|
/reactos/modules/rosapps/applications/cmdutils/touch/ |
H A D | touch.c | 221 t->tm_year = ATOI2(arg); in stime_arg1() 222 t->tm_year *= 1000; in stime_arg1() 228 t->tm_year += yearset; in stime_arg1() 232 t->tm_year = yearset + 2000; in stime_arg1() 234 t->tm_year = yearset + 1900; in stime_arg1() 236 t->tm_year -= 1900; /* Convert to UNIX time. */ in stime_arg1() 270 t->tm_year = ATOI2(arg); in stime_arg2()
|
/reactos/sdk/lib/ucrt/time/ |
H A D | tzset.cpp | 543 if (tb->tm_year != dststart.yr || tb->tm_year != dstend.yr) in _isindst_nolock() 553 tb->tm_year, in _isindst_nolock() 568 tb->tm_year, in _isindst_nolock() 585 tb->tm_year, in _isindst_nolock() 600 tb->tm_year, in _isindst_nolock() 621 if (107 > tb->tm_year) in _isindst_nolock() 632 tb->tm_year, in _isindst_nolock() 645 tb->tm_year, in _isindst_nolock()
|
H A D | wcsftime.cpp | 435 system_time.wYear = static_cast<WORD>(tmptr->tm_year + 1900); in _Success_() 732 _VALIDATE_RETURN(timeptr->tm_year >= -1900 && timeptr->tm_year <= 8099, EINVAL, false); in expand_time() 733 … store_number(__crt_get_century(timeptr->tm_year), 2, string, left, alternate_form ? '\0' : '0'); in expand_time() 773 _VALIDATE_RETURN(timeptr->tm_year >= -1900 && timeptr->tm_year <= 8099, EINVAL, false); in expand_time() 774 … int const iso_year{compute_iso_year(timeptr->tm_year, timeptr->tm_wday, timeptr->tm_yday) + 1900}; in expand_time() 781 _VALIDATE_RETURN(timeptr->tm_year >= -1900 && timeptr->tm_year <= 8099, EINVAL, false); in expand_time() 944 int const iso_week{compute_iso_week(timeptr->tm_year, timeptr->tm_wday, timeptr->tm_yday)}; in expand_time() 963 _VALIDATE_RETURN(timeptr->tm_year >= -1900 && timeptr->tm_year <= 8099, EINVAL, false); in expand_time() 964 unsigned const two_digit_year = __crt_get_2digit_year(timeptr->tm_year); in expand_time() 971 _VALIDATE_RETURN(timeptr->tm_year >= -1900 && timeptr->tm_year <= 8099, EINVAL, false); in expand_time() [all …]
|
H A D | asctime.cpp | 65 _VALIDATE_RETURN_ERRCODE(tm_value->tm_year >= 0, EINVAL) in _Out_writes_z_() 74 …_VALIDATE_RETURN_ERRCODE(__crt_time_is_day_valid(tm_value->tm_year, tm_value->tm_mon, tm_value->tm… in _Out_writes_z_() 107 buffer_it = common_asctime_s_write_value(buffer_it, __crt_get_century(tm_value->tm_year), true); in _Out_writes_z_() 108 …buffer_it = common_asctime_s_write_value(buffer_it, __crt_get_2digit_year(tm_value->tm_year), true… in _Out_writes_z_()
|
H A D | utime.cpp | 101 local_time.wYear = static_cast<WORD>(tm_value.tm_year + 1900); in common_futime() 124 local_time.wYear = static_cast<WORD>(tm_value.tm_year + 1900); in common_futime()
|
H A D | loctotime.cpp | 81 tm_value.tm_year = yr; in common_loctotime_t()
|
H A D | localtime.cpp | 153 ptm->tm_year--; in common_localtime_s()
|
/reactos/sdk/lib/atl/ |
H A D | atltime.h | 146 time.tm_year = nYear; 163 time.tm_year = st.wYear; 176 time.tm_year = st.wYear; 191 time.tm_year = st.wYear; 204 time.tm_year = dbts.year; 277 dbts.year = time.tm_year; in GetAsDBTIMESTAMP() 291 st.wYear = time.tm_year; in GetAsSystemTime() 372 return time.tm_year; in GetYear()
|
/reactos/sdk/lib/ucrt/misc/ |
H A D | systime.cpp | 28 result->tm_year = static_cast<int>(local_time.wYear - 1900); in _getsystime() 51 local_time.wYear = static_cast<WORD>(source->tm_year + 1900); in _setsystime()
|
/reactos/sdk/include/c++/stlport/stl/ |
H A D | _time_facets.c | 251 bool __pr = __get_decimal_integer(__first, __last, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in _STLP_WEAK() 258 bool __pr = __get_decimal_integer(__first, __last, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in _STLP_WEAK() 259 __t->tm_year -= 1900; in _STLP_WEAK() 357 bool __pr = _STLP_PRIV __get_decimal_integer(__s, __end, __t->tm_year, __STATIC_CAST(_Ch*, 0)); in do_get_year() 358 __t->tm_year -= 1900; in do_get_year()
|
/reactos/modules/rosapps/applications/net/ncftp/libncftp/ |
H A D | util.c | 458 local_tm.tm_year = 94; /* Doesn't really matter. */ in GetUTCOffset() 467 utc_tm.tm_year = utc_tmptr->tm_year; in GetUTCOffset() 512 &ut.tm_year, in UnMDTMDate() 520 ut.tm_year -= 1900; in UnMDTMDate()
|
H A D | glob.c | 227 ftm.tm_year = year; /* years since 1900 */ in UnDosLine() 235 ftm.tm_year = year; /* years since 1900 */ in UnDosLine() 506 ftm.tm_year = thisyear - 1900; in UnLslRLine() 511 --ftm.tm_year; in UnLslRLine() 514 ++ftm.tm_year; in UnLslRLine() 518 ftm.tm_year = year - 1900; in UnLslRLine() 591 thisyear = nowtm->tm_year + 1900; in UnLslR()
|
/reactos/sdk/tools/mkisofs/schilytools/mkisofs/ |
H A D | mkisofs.c | 756 p = strntoi(arg, 4, &tp->tm_year); 760 if (tp->tm_year < 69) 761 tp->tm_year += 100; 763 tp->tm_year -= 1900; 770 p = strntoi(arg, 4, &tp->tm_year); 773 tp->tm_year -= 1900; 1878 result[0] = local.tm_year; 1888 local.tm_year -= gmt.tm_year; 1889 if (local.tm_year) /* Hit new-year limit */ 1924 1900 + local.tm_year, [all …]
|
/reactos/modules/rostests/tests/mktime/ |
H A D | mktime.c | 14 time_str.tm_year = 2001 - 1900; in main()
|
/reactos/modules/rostests/regtests/crt/ |
H A D | time.c | 27 time.tm_year = 9; in Test_asctime()
|
/reactos/sdk/lib/3rdparty/stlport/src/ |
H A D | time_facets.cpp | 313 _bend = __write_integer(_buf, 0, (long)((long)(t->tm_year + 1900) % 100)); in __write_formatted_timeT() 318 _bend = __write_integer(_buf, 0, (long)((long)t->tm_year + 1900)); in __write_formatted_timeT() 393 int year = t->tm_year + __TM_YEAR_BASE; in __write_formatted_timeT()
|
/reactos/sdk/include/c++/stlport/stl/config/ |
H A D | _evc.h | 287 int tm_year; /* years since 1900 */ member
|