Searched refs:month (Results 1 – 8 of 8) sorted by relevance
/fs/fat/ |
D | misc.c | 179 time_t second, day, leap_day, month, year; in fat_time_fat2unix() local 182 month = max(1, (date >> 5) & 0xf); in fat_time_fat2unix() 188 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix() 195 + days_in_year[month] + day in fat_time_fat2unix() 215 time_t day, leap_day, month, year; in fat_time_unix2fat() local 251 month = 2; in fat_time_unix2fat() 255 for (month = 1; month < 12; month++) { in fat_time_unix2fat() 256 if (days_in_year[month + 1] > day) in fat_time_unix2fat() 260 day -= days_in_year[month]; in fat_time_unix2fat() 265 *date = cpu_to_le16((year << 9) | (month << 5) | (day + 1)); in fat_time_unix2fat()
|
/fs/isofs/ |
D | util.c | 19 int year, month, day, hour, minute, second, tz; in iso_date() local 23 month = p[1]; in iso_date() 39 for (i = 1; i < month; i++) in iso_date() 41 if (((year+2) % 4) == 0 && month > 2) in iso_date()
|
/fs/ncpfs/ |
D | dir.c | 1210 int month, year, secs; in ncp_date_dos2unix() local 1214 month = ((date >> 5) - 1) & 15; in ncp_date_dos2unix() 1217 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) + in ncp_date_dos2unix() 1218 year * 365 - ((year & 3) == 0 && month < 2 ? 1 : 0) + 3653); in ncp_date_dos2unix() 1228 int day, year, nl_day, month; in ncp_date_unix2dos() local 1241 month = 2; in ncp_date_unix2dos() 1244 for (month = 0; month < 12; month++) in ncp_date_unix2dos() 1245 if (day_n[month] > nl_day) in ncp_date_unix2dos() 1248 *date = cpu_to_le16(nl_day - day_n[month - 1] + 1 + (month << 5) + (year << 9)); in ncp_date_unix2dos()
|
/fs/cifs/ |
D | netmisc.c | 893 int sec, min, days, month, year; in cnvrtDosUnixTm() local 908 month = sd->Month; in cnvrtDosUnixTm() 909 if ((days > 31) || (month > 12)) { in cnvrtDosUnixTm() 910 cERROR(1, ("illegal date, month %d day: %d", month, days)); in cnvrtDosUnixTm() 911 if (month > 12) in cnvrtDosUnixTm() 912 month = 12; in cnvrtDosUnixTm() 914 month -= 1; in cnvrtDosUnixTm() 915 days += total_days_of_prev_months[month]; in cnvrtDosUnixTm() 931 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
|
/fs/udf/ |
D | udftime.c | 112 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time() 158 dest->month = y + 1; in udf_time_to_disk_stamp()
|
D | ecma_167.h | 63 uint8_t month; member
|
D | super.c | 923 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc() 1985 sbi->s_volume_ident, le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
|
/fs/smbfs/ |
D | proc.c | 471 int month, year; in date_dos2unix() local 476 month = ((date >> 5) - 1) & 15; in date_dos2unix() 479 ((date & 31) - 1 + day_n[month] + (year / 4) + year * 365 - ((year & 3) == 0 && in date_dos2unix() 480 month < 2 ? 1 : 0) + 3653); in date_dos2unix() 492 int day, year, nl_day, month; in date_unix2dos() local 509 month = 2; in date_unix2dos() 512 for (month = 0; month < 12; month++) in date_unix2dos() 513 if (day_n[month] > nl_day) in date_unix2dos() 516 *date = nl_day - day_n[month - 1] + 1 + (month << 5) + (year << 9); in date_unix2dos()
|