Lines Matching defs:date
7 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru)
174 * date: 0 - 4: day (1 - 31)
175 * date: 5 - 8: month (1 - 12)
176 * date: 9 - 15: year (0 - 127) from 1980
203 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */
207 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date);
211 year = date >> 9;
212 month = max(1, (date >> 5) & 0xf);
213 day = max(1, date & 0x1f) - 1;
242 /* Convert linear UNIX date to a FAT time/date pair. */
244 __le16 *time, __le16 *date, u8 *time_cs)
252 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1);
259 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31);
273 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday);