Searched refs:year (Results 1 – 7 of 7) sorted by relevance
/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 | 47 #define __isleap(year) \ argument 48 ((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() 154 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
|
D | ecma_167.h | 62 __le16 year; member
|
D | super.c | 926 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc() 2211 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
|
/fs/fat/ |
D | misc.c | 197 time_t second, day, leap_day, month, year; in fat_time_fat2unix() local 199 year = date >> 9; in fat_time_fat2unix() 203 leap_day = (year + 3) / 4; in fat_time_fat2unix() 204 if (year > YEAR_2100) /* 2100 isn't leap year */ in fat_time_fat2unix() 206 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix() 212 second += (year * 365 + leap_day in fat_time_fat2unix()
|
/fs/ncpfs/ |
D | dir.c | 1196 int month, year, secs; in ncp_date_dos2unix() local 1201 year = date >> 9; in ncp_date_dos2unix() 1203 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) + in ncp_date_dos2unix() 1204 year * 365 - ((year & 3) == 0 && month < 2 ? 1 : 0) + 3653); in ncp_date_dos2unix() 1214 int day, year, nl_day, month; in ncp_date_unix2dos() local 1221 year = day / 365; in ncp_date_unix2dos() 1222 if ((year + 3) / 4 + 365 * year > day) in ncp_date_unix2dos() 1223 year--; in ncp_date_unix2dos() 1224 day -= (year + 3) / 4 + 365 * year; in ncp_date_unix2dos() 1225 if (day == 59 && !(year & 3)) { in ncp_date_unix2dos() [all …]
|
/fs/cifs/ |
D | netmisc.c | 965 int sec, min, days, month, year; in cnvrtDosUnixTm() local 991 year = sd->Year; in cnvrtDosUnixTm() 992 days += year * 365; in cnvrtDosUnixTm() 993 days += (year/4); /* leap year */ in cnvrtDosUnixTm() 1000 if (year >= 120) /* the year 2100 */ in cnvrtDosUnixTm() 1004 if (year != 120) in cnvrtDosUnixTm() 1005 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
|