Lines Matching defs:date
6 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru)
152 * date: 0 - 4: day (1 - 31)
153 * date: 5 - 8: month (1 - 12)
154 * date: 9 - 15: year (0 - 127) from 1980
174 /* Convert a FAT time/date pair to a UNIX date (seconds since 1 1 70). */
178 u16 time = le16_to_cpu(__time), date = le16_to_cpu(__date);
181 year = date >> 9;
182 month = max(1, (date >> 5) & 0xf);
183 day = max(1, date & 0x1f) - 1;
210 /* Convert linear UNIX date to a FAT time/date pair. */
212 __le16 *time, __le16 *date, u8 *time_cs)
221 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1);
228 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31);
242 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday);