Home
last modified time | relevance | path

Searched refs:year (Results 1 – 7 of 7) sorted by relevance

/fs/isofs/
Dutil.c19 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/
Dudftime.c47 #define __isleap(year) \ argument
48 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
94 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time() local
107 if ((year < EPOCH_YEAR) || in udf_disk_stamp_to_time()
108 (year >= EPOCH_YEAR + MAX_YEAR_SECONDS)) { in udf_disk_stamp_to_time()
111 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time()
114 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time()
156 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
Decma_167.h62 __le16 year; member
Dsuper.c805 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
2049 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
/fs/fat/
Dmisc.c196 time_t second, day, leap_day, month, year; in fat_time_fat2unix() local
198 year = date >> 9; in fat_time_fat2unix()
202 leap_day = (year + 3) / 4; in fat_time_fat2unix()
203 if (year > YEAR_2100) /* 2100 isn't leap year */ in fat_time_fat2unix()
205 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix()
211 second += (year * 365 + leap_day in fat_time_fat2unix()
/fs/ncpfs/
Ddir.c1241 int month, year, secs; in ncp_date_dos2unix() local
1246 year = date >> 9; in ncp_date_dos2unix()
1248 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) + in ncp_date_dos2unix()
1249 year * 365 - ((year & 3) == 0 && month < 2 ? 1 : 0) + 3653); in ncp_date_dos2unix()
1259 int day, year, nl_day, month; in ncp_date_unix2dos() local
1266 year = day / 365; in ncp_date_unix2dos()
1267 if ((year + 3) / 4 + 365 * year > day) in ncp_date_unix2dos()
1268 year--; in ncp_date_unix2dos()
1269 day -= (year + 3) / 4 + 365 * year; in ncp_date_unix2dos()
1270 if (day == 59 && !(year & 3)) { in ncp_date_unix2dos()
[all …]
/fs/cifs/
Dnetmisc.c959 int sec, min, days, month, year; in cnvrtDosUnixTm() local
985 year = sd->Year; in cnvrtDosUnixTm()
986 days += year * 365; in cnvrtDosUnixTm()
987 days += (year/4); /* leap year */ in cnvrtDosUnixTm()
994 if (year >= 120) /* the year 2100 */ in cnvrtDosUnixTm()
998 if (year != 120) in cnvrtDosUnixTm()
999 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()