Lines Matching refs:year
364 case 'G': /* ISO 8601 year (four digits) */
365 case 'g': /* ISO 8601 year (two digits) */
367 int year;
372 year = t->tm_year + TM_YEAR_BASE;
380 len = isleap(year) ?
385 ** the ISO year begin on?
391 ** ISO year begin on?
399 ++year;
408 --year;
409 yday += isleap(year) ?
418 pt = _conv(year % 100, "%02d",
420 } else pt = _conv(year, "%04d",
609 res->tm_year = SystemTime.wYear; // this the correct year
613 res->tm_yday = __mon_yday[iLeap][res->tm_mon] + SystemTime.wDay - 1; // localtime returns year-day aligned to zero
650 static time_t __cdecl common_tm_to_time(int day, int month, int year, int hour, int minute, int second)
663 t.tm_year = year - 1900;
672 if (month == 2 && is_leap(year))
677 prog = day - 1 ; // align first day of the year to zero
678 prog += (DAYS_IN_ONE_YEAR * (year - 1970) + (year - 1901) / 4 - 19) ;
724 short month, year;
728 year = t->tm_year + month / 12 + 1900;
732 year -= 1;
735 result = (year - 1970) * 365 + (year - 1969) / 4 + month_to_day[month];
736 result = (year - 1970) * 365 + month_to_day[month];
738 year -= 1;
739 result += (year - 1968) / 4;
740 result -= (year - 1900) / 100;
741 result += (year - 1600) / 400;