Lines Matching refs:date
6 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru)
144 /* Convert a MS-DOS time/date pair to a UNIX date (seconds since 1 1 70). */
145 int date_dos2unix(unsigned short time, unsigned short date)
151 * date == 0, bad things happen
153 month = ((date >> 5) - 1) & 15;
154 year = date >> 9;
156 ((date & 31)-1+day_n[month]+(year/4)+year*365-((year & 3) == 0 &&
163 /* Convert linear UNIX date to a MS-DOS time/date pair. */
164 void fat_date_unix2dos(int unix_date, __le16 *time, __le16 *date)
191 *date = cpu_to_le16(nl_day-day_n[month-1]+1+(month << 5)+(year << 9));