Home
last modified time | relevance | path

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

123

/reactos/modules/rostests/winetests/msvcrt/
H A Dtime.c88 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 Dsystime.c27 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 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()
/reactos/sdk/lib/crt/time/
H A Dmktime.c28 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 Dasctime.c92 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 Dstrftime.c17 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 Dgmtime.c52 ptm->tm_year = years - 299; in _gmtime_worker()
H A Dtimezone.c193 _tm.tm_year = 70; in _tzset()
/reactos/modules/rosapps/applications/cmdutils/touch/
H A Dtouch.c221 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 Dtzset.cpp543 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 Dwcsftime.cpp435 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 Dasctime.cpp65 _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 Dutime.cpp101 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 Dloctotime.cpp81 tm_value.tm_year = yr; in common_loctotime_t()
H A Dlocaltime.cpp153 ptm->tm_year--; in common_localtime_s()
/reactos/sdk/lib/atl/
H A Datltime.h146 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 Dsystime.cpp28 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.c251 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 Dutil.c458 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 Dglob.c227 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 Dmkisofs.c756 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 Dmktime.c14 time_str.tm_year = 2001 - 1900; in main()
/reactos/modules/rostests/regtests/crt/
H A Dtime.c27 time.tm_year = 9; in Test_asctime()
/reactos/sdk/lib/3rdparty/stlport/src/
H A Dtime_facets.cpp313 _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.h287 int tm_year; /* years since 1900 */ member

123