Lines Matching defs:year
1010 * @yearp: optional out parameter for the year
1022 * On return, year, month and day are guaranteed to be in the
1027 int year = 0, month = 0, day = 0;
1038 * Determine year first. We assume the date string resembles
1039 * mm/dd/yy[yy] but the original code extracted only the year
1048 year = simple_strtoul(y, &e, 10);
1049 if (y != e && year < 100) { /* 2-digit year */
1050 year += 1900;
1051 if (year < 1996) /* no dates < spec 1.0 */
1052 year += 100;
1054 if (year > 9999) /* year should fit in %04d */
1055 year = 0;
1070 *yearp = year;
1080 * dmi_get_bios_year - get a year out of DMI_BIOS_DATE field
1082 * Returns year on success, -ENXIO if DMI is not selected,
1089 int year;
1091 exists = dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL);
1095 return year ? year : -ERANGE;