/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/rtc/ |
H A D | rtc-efi.c | 30 * returns day of the year [0-365] 36 return rtc_year_days(eft->day - 1, eft->month - 1, eft->year); 41 * Don't try to provide a year that's before 1998, please ! 49 if (eft->year < 1998) { 50 printk(KERN_ERR "efirtc: EFI year < 1998, invalid date\n"); 54 for (y = EFI_RTC_EPOCH; y < eft->year; y++) 68 eft->year = wtime->tm_year + 1900; 88 wtime->tm_year = eft->year - 1900; 93 /* day in the year [1-365]*/
|
H A D | rtc-r9701.c | 100 int ret, year; local 102 year = dt->tm_year + 1900; 103 if (year >= 2100 || year < 2000)
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/acpi/ |
H A D | blacklist.c | 83 int year; local 86 if (!dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL)) { 87 printk(KERN_ERR PREFIX "no DMI BIOS year, " 92 if (year == 0) { 93 printk(KERN_ERR PREFIX "DMI BIOS year==0, " 97 if (year < CONFIG_ACPI_BLACKLIST_YEAR) { 100 year, CONFIG_ACPI_BLACKLIST_YEAR);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/sh/boards/mach-sh03/ |
H A D | rtc.c | 42 unsigned int year, mon, day, hour, min, sec; local 52 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 56 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || 60 printk("year=%d, mon=%d, day=%d, hour=%d, min=%d, sec=%d\n", 61 year, mon, day, hour, min, sec); 77 return mktime(year, mon, day, hour, min, sec);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/quagga/doc/ |
H A D | mdate-sh | 154 # $4 = year or time 162 # $3 = year or time 187 # the time of day or the year. 189 *:*) set `date`; eval year=\$$# 204 # For the first six month of the year the time notation can also 205 # be used for files modified in the last year. 208 year=`expr $year - 1` 210 *) year=$3;; 214 echo $day $month $year [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/quagga/doc/ |
H A D | mdate-sh | 154 # $4 = year or time 162 # $3 = year or time 187 # the time of day or the year. 189 *:*) set `date`; eval year=\$$# 204 # For the first six month of the year the time notation can also 205 # be used for files modified in the last year. 208 year=`expr $year - 1` 210 *) year=$3;; 214 echo $day $month $year [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/wget/src/ |
H A D | ftp-ls.c | 102 int year, month, day; /* for time analysis */ local 179 year = hour = min = sec = 0; /* Silence the compiler. */ 242 /* This ought to be either the time, or the year. Let's 245 If we have a number x, it's a year. If we have x:y, 248 year = 0; 253 /* Suppose it's year. */ 255 year = (*tok - '0') + 10 * year; 259 hour = year; 260 year 426 int year, month, day; /* for time analysis */ local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/wget/src/ |
H A D | ftp-ls.c | 102 int year, month, day; /* for time analysis */ local 179 year = hour = min = sec = 0; /* Silence the compiler. */ 242 /* This ought to be either the time, or the year. Let's 245 If we have a number x, it's a year. If we have x:y, 248 year = 0; 253 /* Suppose it's year. */ 255 year = (*tok - '0') + 10 * year; 259 hour = year; 260 year 426 int year, month, day; /* for time analysis */ local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/wget/src/ |
H A D | ftp-ls.c | 102 int year, month, day; /* for time analysis */ local 179 year = hour = min = sec = 0; /* Silence the compiler. */ 242 /* This ought to be either the time, or the year. Let's 245 If we have a number x, it's a year. If we have x:y, 248 year = 0; 253 /* Suppose it's year. */ 255 year = (*tok - '0') + 10 * year; 259 hour = year; 260 year 426 int year, month, day; /* for time analysis */ local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/netfilter/ |
H A D | xt_time.c | 106 unsigned int year, i, w = r->dse; local 109 * In each year, a certain number of days-since-the-epoch have passed. 110 * Find the year that is closest to said days. 114 * year == 2009. w will then be 62. 116 for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w; 117 ++i, --year) 123 * By now we have the current year, and the day of the year. 130 * Consider w=62 (in a non-leap year). Loop will abort on 137 if (is_leap(year)) { [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/rtc/ |
H A D | rtc-r9701.c | 100 int ret, year; local 102 year = dt->tm_year + 1900; 103 if (year >= 2100 || year < 2000)
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/netfilter/ |
H A D | xt_time.c | 106 unsigned int year, i, w = r->dse; local 109 * In each year, a certain number of days-since-the-epoch have passed. 110 * Find the year that is closest to said days. 114 * year == 2009. w will then be 62. 116 for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w; 117 ++i, --year) 123 * By now we have the current year, and the day of the year. 130 * Consider w=62 (in a non-leap year). Loop will abort on 137 if (is_leap(year)) { [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/m68knommu/platform/68EZ328/ |
H A D | config.c | 28 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/m68knommu/platform/68EZ328/ |
H A D | config.c | 28 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/m68knommu/platform/68328/ |
H A D | timers.c | 124 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec) argument 128 *year = *mon = *day = 1;
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/m68knommu/platform/68328/ |
H A D | timers.c | 124 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec) argument 128 *year = *mon = *day = 1;
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/fat/ |
H A D | misc.c | 154 * date: 9 - 15: year (0 - 127) from 1980 164 /* 120 (2100 - 1980) isn't leap year */ 179 time_t second, day, leap_day, month, year; local 181 year = date >> 9; 185 leap_day = (year + 3) / 4; 186 if (year > YEAR_2100) /* 2100 isn't leap year */ 188 if (IS_LEAP_YEAR(year) && month > 2) 194 second += (year * 365 + leap_day 218 /* FAT can only support year betwee [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/ |
H A D | rtc.h | 105 extern int rtc_month_days(unsigned int month, unsigned int year); 106 extern int rtc_year_days(unsigned int day, unsigned int month, unsigned int year); 236 static inline bool is_leap_year(unsigned int year) argument 238 return (!(year % 4) && (year % 100)) || !(year % 400);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/curl-7.21.7/lib/ |
H A D | parsedate.c | 295 int month, year, leap_days; local 302 year = tm->tm_year + 1900; 305 year += (11 - month) / 12; 309 year -= month / 12; 313 leap_days = year - (tm->tm_mon <= 1); 317 return ((((time_t) (year - 1970) * 365 337 int monnum=-1; /* month of the year number, 0-11 */ 428 /* 8 digits, no year, month or day yet. This is YYYYMMDD */
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/fat/ |
H A D | misc.c | 154 * date: 9 - 15: year (0 - 127) from 1980 164 /* 120 (2100 - 1980) isn't leap year */ 179 time_t second, day, leap_day, month, year; local 181 year = date >> 9; 185 leap_day = (year + 3) / 4; 186 if (year > YEAR_2100) /* 2100 isn't leap year */ 188 if (IS_LEAP_YEAR(year) && month > 2) 194 second += (year * 365 + leap_day 218 /* FAT can only support year betwee [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 73 #define M41T81REG_YR 0x07 /* year */ 193 unsigned int year, mon, day, hour, min, sec; local 209 year = m41t81_read(M41T81REG_YR); 217 year = bcd2bin(year); 219 year += 2000; 221 return mktime(year, mon, day, hour, min, sec);
|
H A D | rtc_xicor1241.c | 141 /* year is split */ 173 unsigned int year, mon, day, hour, min, sec, y2k; local 190 year = xicor_read(X1241REG_YR); 199 year = bcd2bin(year); 202 year += (y2k * 100); 204 return mktime(year, mon, day, hour, min, sec);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 73 #define M41T81REG_YR 0x07 /* year */ 193 unsigned int year, mon, day, hour, min, sec; local 209 year = m41t81_read(M41T81REG_YR); 217 year = bcd2bin(year); 219 year += 2000; 221 return mktime(year, mon, day, hour, min, sec);
|
H A D | rtc_xicor1241.c | 141 /* year is split */ 173 unsigned int year, mon, day, hour, min, sec, y2k; local 190 year = xicor_read(X1241REG_YR); 199 year = bcd2bin(year); 202 year += (y2k * 100); 204 return mktime(year, mon, day, hour, min, sec);
|
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/ |
H A D | rtc.h | 105 extern int rtc_month_days(unsigned int month, unsigned int year); 106 extern int rtc_year_days(unsigned int day, unsigned int month, unsigned int year); 236 static inline bool is_leap_year(unsigned int year) argument 238 return (!(year % 4) && (year % 100)) || !(year % 400);
|