Lines Matching defs:date
1205 /* Convert a MS-DOS time/date pair to a UNIX date (seconds since 1 1 70). */
1209 unsigned short time = le16_to_cpu(t), date = le16_to_cpu(d);
1213 date == 0, bad things happen */
1214 month = ((date >> 5) - 1) & 15;
1215 year = date >> 9;
1217 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) +
1224 /* Convert linear UNIX date to a MS-DOS time/date pair. */
1226 ncp_date_unix2dos(int unix_date, __le16 *time, __le16 *date)
1248 *date = cpu_to_le16(nl_day - day_n[month - 1] + 1 + (month << 5) + (year << 9));