Lines Matching defs:year
1003 * @yearp: optional out parameter for the year
1015 * On return, year, month and day are guaranteed to be in the
1020 int year = 0, month = 0, day = 0;
1031 * Determine year first. We assume the date string resembles
1032 * mm/dd/yy[yy] but the original code extracted only the year
1041 year = simple_strtoul(y, &e, 10);
1042 if (y != e && year < 100) { /* 2-digit year */
1043 year += 1900;
1044 if (year < 1996) /* no dates < spec 1.0 */
1045 year += 100;
1047 if (year > 9999) /* year should fit in %04d */
1048 year = 0;
1063 *yearp = year;
1073 * dmi_get_bios_year - get a year out of DMI_BIOS_DATE field
1075 * Returns year on success, -ENXIO if DMI is not selected,
1082 int year;
1084 exists = dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL);
1088 return year ? year : -ERANGE;