Searched refs:year (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 181 year = date >> 9; in fat_time_fat2unix() 185 leap_day = (year + 3) / 4; in fat_time_fat2unix() 186 if (year > YEAR_2100) /* 2100 isn't leap year */ in fat_time_fat2unix() 188 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix() 194 second += (year * 365 + leap_day in fat_time_fat2unix() 215 time_t day, leap_day, month, year; in fat_time_unix2fat() local 239 year = day / 365; in fat_time_unix2fat() 240 leap_day = (year + 3) / 4; in fat_time_unix2fat() 241 if (year > YEAR_2100) /* 2100 isn't leap year */ in fat_time_unix2fat() [all …]
|
/fs/isofs/ |
D | util.c | 19 int year, month, day, hour, minute, second, tz; in iso_date() local 22 year = p[0] - 70; in iso_date() 31 if (year < 0) { in iso_date() 36 days = year * 365; in iso_date() 37 if (year > 2) in iso_date() 38 days += (year+1) / 4; in iso_date() 41 if (((year+2) % 4) == 0 && month > 2) in iso_date()
|
/fs/udf/ |
D | udftime.c | 46 #define __isleap(year) \ argument 47 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 92 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time() local 105 if ((year < EPOCH_YEAR) || in udf_disk_stamp_to_time() 106 (year >= EPOCH_YEAR + MAX_YEAR_SECONDS)) { in udf_disk_stamp_to_time() 109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time() 112 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time() 153 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
|
D | ecma_167.h | 62 __le16 year; 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/ncpfs/ |
D | dir.c | 1210 int month, year, secs; in ncp_date_dos2unix() local 1215 year = date >> 9; 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 1235 year = day / 365; in ncp_date_unix2dos() 1236 if ((year + 3) / 4 + 365 * year > day) in ncp_date_unix2dos() 1237 year--; in ncp_date_unix2dos() 1238 day -= (year + 3) / 4 + 365 * year; in ncp_date_unix2dos() 1239 if (day == 59 && !(year & 3)) { in ncp_date_unix2dos() [all …]
|
/fs/cifs/ |
D | netmisc.c | 893 int sec, min, days, month, year; in cnvrtDosUnixTm() local 917 year = sd->Year; in cnvrtDosUnixTm() 918 days += year * 365; in cnvrtDosUnixTm() 919 days += (year/4); /* leap year */ in cnvrtDosUnixTm() 926 if (year >= 120) /* the year 2100 */ in cnvrtDosUnixTm() 930 if (year != 120) in cnvrtDosUnixTm() 931 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
|
/fs/smbfs/ |
D | proc.c | 471 int month, year; in date_dos2unix() local 477 year = date >> 9; in date_dos2unix() 479 ((date & 31) - 1 + day_n[month] + (year / 4) + year * 365 - ((year & 3) == 0 && in date_dos2unix() 492 int day, year, nl_day, month; in date_unix2dos() local 503 year = day / 365; in date_unix2dos() 504 if ((year + 3) / 4 + 365 * year > day) in date_unix2dos() 505 year--; in date_unix2dos() 506 day -= (year + 3) / 4 + 365 * year; in date_unix2dos() 507 if (day == 59 && !(year & 3)) { in date_unix2dos() 511 nl_day = (year & 3) || day <= 59 ? day : day - 1; in date_unix2dos() [all …]
|