Lines Matching refs:tm_year

84     *start = SECSPERDAY * ((tm->tm_year - 70) * 365 +  in get_test_year()
85 (tm->tm_year - 69) / 4 - in get_test_year()
86 (tm->tm_year - 1) / 100 + in get_test_year()
87 (tm->tm_year + 299) / 400); in get_test_year()
88 return tm->tm_year; in get_test_year()
114 ok(gmt_tm==NULL || broken(gmt_tm->tm_year==70 && gmt_tm->tm_sec<0), "gmt_tm != NULL\n"); in test_gmtime()
123 ok(((gmt_tm->tm_year == 70) && (gmt_tm->tm_mon == 0) && (gmt_tm->tm_yday == 0) && in test_gmtime()
127 gmt_tm->tm_year, gmt_tm->tm_mon, gmt_tm->tm_yday, gmt_tm->tm_mday, gmt_tm->tm_wday, in test_gmtime()
186 ok(gmt_tm_s.tm_year == -1 || broken(gmt_tm_s.tm_year == 70 && gmt_tm_s.tm_sec < 0), in test_gmtime()
187 "tm_year = %d, tm_sec = %d\n", gmt_tm_s.tm_year, gmt_tm_s.tm_sec); in test_gmtime()
188 if(gmt_tm_s.tm_year == -1) { in test_gmtime()
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()
243 my_tm.tm_year,my_tm.tm_mon,my_tm.tm_mday, in test_mktime()
245 sav_tm.tm_year,sav_tm.tm_mon,sav_tm.tm_mday, in test_mktime()
253 ok( my_tm.tm_year == sav_tm.tm_year && my_tm.tm_mon == sav_tm.tm_mon && in test_mktime()
257 my_tm.tm_year,my_tm.tm_mon,my_tm.tm_mday, in test_mktime()
259 sav_tm.tm_year,sav_tm.tm_mon,sav_tm.tm_mday, 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()
271 my_tm.tm_year,my_tm.tm_mon,my_tm.tm_mday, in test_mktime()
273 sav_tm.tm_year,sav_tm.tm_mon,sav_tm.tm_mday, 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()
285 my_tm.tm_year,my_tm.tm_mon,my_tm.tm_mday, in test_mktime()
287 sav_tm.tm_year,sav_tm.tm_mon,sav_tm.tm_mday, in test_mktime()
291 my_tm.tm_year = 69; in test_mktime()
321 ok(((lt->tm_year == year) && (lt->tm_mon == 0) && (lt->tm_yday == 1) && in test_localtime()
325 lt->tm_year, lt->tm_mon, lt->tm_yday, lt->tm_mday, lt->tm_wday, lt->tm_hour, in test_localtime()
331 ok(((lt->tm_year == year) && (lt->tm_mon == 0) && (lt->tm_yday == 1) && in test_localtime()
335 lt->tm_year, lt->tm_mon, lt->tm_yday, lt->tm_mday, lt->tm_wday, lt->tm_hour, in test_localtime()
344 ok(((lt->tm_year == year) && (lt->tm_mon == 6) && (lt->tm_yday == 202) && in test_localtime()
348 lt->tm_year, lt->tm_mon, lt->tm_yday, lt->tm_mday, lt->tm_wday, lt->tm_hour, in test_localtime()
481 tm.tm_mday == -1 && tm.tm_mon == -1 && tm.tm_year == -1 && in test_localtime32_s()
485 tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday, in test_localtime32_s()
495 tm.tm_mday == -1 && tm.tm_mon == -1 && tm.tm_year == -1 && in test_localtime32_s()
499 tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday, in test_localtime32_s()
532 tm.tm_mday == -1 && tm.tm_mon == -1 && tm.tm_year == -1 && in test_localtime64_s()
536 tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday, in test_localtime64_s()
546 tm.tm_mday == -1 && tm.tm_mon == -1 && tm.tm_year == -1 && in test_localtime64_s()
550 tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday, in test_localtime64_s()
560 tm.tm_mday == -1 && tm.tm_mon == -1 && tm.tm_year == -1 && in test_localtime64_s()
564 tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday, in test_localtime64_s()
852 gmt_tm->tm_year = 8100; in test_asctime()
856 gmt_tm->tm_year = 264100; in test_asctime()
862 gmt_tm->tm_year = -1; in test_asctime()
870 gmt_tm->tm_year = 79; in test_asctime()