/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ctime.c | 43 * year-1970 45 * day of the year 117 int year = t->tm_year + 1900; local 137 if (year < 0 || year >= 10000) { 142 cp = ct_numb(cp, year / 100, '0'); 144 (void) ct_numb(cp, year, '0');
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | cvrt_spd_data.c | 85 * byte 93 year of manufacture is expanded to a 2 byte (big endian) 103 ushort_t year; local 120 year = spd->manu_year; 122 if (year < 80) 123 year += 2000; 125 year += 1900; 155 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[0] = (uchar_t)(year >> 8); 156 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[1] = (uchar_t)year;
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | todbq4802.c | 158 * Assumes that the year in the clock chip is valid. 171 DPRINTF("todbq4802_get: century=%d year=%d dom=%d hrs=%d min=%d" 177 * year retrieved from the rtc's century and year fields. 250 int year; local 255 year = 1900 + tod.tod_year; 256 rtc.rtc_year = year % 100; 257 rtc.rtc_century = year / 100; 264 DPRINTF("todbq4802_set: year=%d dom=%d hrs=%d min=%d sec=%d\n",
|
H A D | todm5819.c | 136 * Assumes that the year in the clock chip is valid. 165 DPRINTF("todm5819_get: century=%d year=%d dom=%d hrs=%d\n", 183 * year retrieved from the rtc's century and year fields. 247 int year; local 252 year = 1900 + tod.tod_year; 253 rtc.rtc_year = year % 100; 254 rtc.rtc_century = year / 100; 261 DPRINTF("todm5819_set: century=%d year=%d dom=%d hrs=%d\n",
|
H A D | todblade.c | 133 * Assumes that the year in the clock chip is valid. 190 DPRINTF("todbl_get: century=%d year=%d dom=%d hrs=%d\n", 208 * year retrieved from the rtc's century and year fields. 274 int year; local 279 year = 1900 + tod.tod_year; 280 rtc.rtc_year = year % 100; 281 rtc.rtc_century = year / 100; 288 DPRINTF("todbl_set: century=%d year=%d dom=%d hrs=%d\n",
|
H A D | todm5819p_rmc.c | 133 * Assumes that the year in the clock chip is valid. 197 * tod_year is base 1900 so this code needs to adjust the true year 198 * retrieved from the rtc's century and year fields. 251 int year; local 258 year = 1900 + tod.tod_year; 259 rtc.rtc_year = year % 100; 260 rtc.rtc_century = year / 100; 270 set_time_msg.year = year - 1900;
|
H A D | todds1337.c | 444 int year; local 450 * Year is base 1900, valid year range 1969-2068 455 year = tod.tod_year; 456 if (year >= 100) 457 year -= 100; 459 rtc.rtc_year = (uint8_t)year; 754 * to accomodate sec, min, hrs, dayOfWeek, dayOfMonth, year 948 int year; local 961 year = p1275_cell2int(ci[6]); 968 if (year > 985 int year; local [all...] |
H A D | todds1287.c | 818 * Assumes that the year in the clock chip is valid. 831 DPRINTF("todds_get: century=%d year=%d dom=%d hrs=%d\n", 836 * year retrieved from the rtc's century and year fields. 953 int year; local 958 year = 1900 + tod.tod_year; 959 rtc.rtc_year = year % 100; 960 rtc.rtc_century = year / 100; 967 DPRINTF("todds_set: century=%d year=%d dom=%d hrs=%d\n",
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | display_funcs.c | 95 int sec, min, hour, day, month, year; local 97 year = BCD_TO_BYTE(mostek[6]) + YRBASE; 98 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4); 104 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ 106 utc += (utc << 2) + ((year - 69) >> 2);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strftime.c | 284 case 'G': /* ISO 8601 year (four digits) */ 285 case 'g': /* ISO 8601 year (two digits) */ 288 * year (the first Monday as the first day of week 1) as a decimal number 293 * "Week 01 of a year is per definition the first week which has the 294 * Thursday in this year, which is equivalent to the week which contains 295 * the fourth day of January. In other words, the first week of a new year 296 * is the week which has the majority of its days in the new year. Week 01 297 * might also contain days from the previous year and the week before week 298 * 01 of a year is the last week (52 or 53) of the previous year eve 305 int year; local [all...] |
/illumos-gate/usr/src/cmd/acct/ |
H A D | wtmpfix.c | 126 int year; local 135 year = tmp->tm_year; 137 lastmonth = ((year + 1900 - 1970) * 365 + 139 nextmonth = ((year + 1900 - 1970) * 365 +
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 80 * a year when time occurs twice (in the fall) and one local hour a 81 * year when time never occurs (in the spring). 176 int year = tme->tm_year + 1900; local 178 if (days_in_year(year) == 366) 181 while (year > 1970) { 182 num_sec += days_in_year(--year) * 24 * 60 * 60; 237 tme->tm_mday == 29)) { /* leap year and February */ 248 gettext("day of year out of range (%d)"), tme->tm_yday); 412 * If the year does not begin with '19' or '20', then report 417 (void) sprintf(errbuf, gettext("invalid year ( 490 days_in_year(int year) argument [all...] |
/illumos-gate/usr/src/cmd/touch/ |
H A D | touch.c | 271 char *year; local 308 year = strsep(&p, "-"); 317 if (year == NULL || strlen(year) < 4 || !isnumber(year) || 328 tm.tm_year = atoi(year) - 1900;
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_subr.c | 63 static time_t hs_date_to_gmtime(int year, int mon, int day, int gmtoff); 164 int year, month, day, hour, minute, sec, gmtoff; local 166 year = HDE_DATE_YEAR(dp); 175 if (year < THE_EPOCH) { 178 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 201 int year, month, day, hour, minute, sec, gmtoff; local 203 year = HSV_DATE_YEAR(dp); 212 if (year < THE_EPOCH) { 215 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 224 /* cumulative number of seconds per month, non-leap and leap-year version [all...] |
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_subr.c | 76 * DOS year zero is 1980. 121 uint_t year, month, day, hour, min, sec; local 133 for (year = YEAR_ZERO; unixtime >= days_in_year(year) * 86400; 134 year++) 135 unixtime -= 86400 * days_in_year(year); 137 if (year > 127 + YEAR_ZERO) { 145 for (month = 1; unixtime >= 86400 * days_in_month(month, year); 147 unixtime -= 86400 * days_in_month(month, year); 149 year 192 uint_t year, month, day, hour, min, sec; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_time.c | 59 * year calculation is bogus, it's sufficient before 2100 :) 82 #define DD_YEAR_MASK 0xFE00 /* year - 1980 */ 85 * Total number of days that have passed for each month in a regular year. 93 * Total number of days that have passed for each month in a leap year. 113 * Number of seconds between 1970 and 1601 year 206 ulong_t days, year, month, inc; local 237 * all this leap year and month stuff. 242 for (year = 1970; ; year++) { 247 inc = year 298 ulong_t year; local [all...] |
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3_noe.h | 45 uint16_t year; member in struct:Noe_Buffer
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vercheck.c | 80 * on the year, month, day, hour and minute by turning that into 87 int maj, year, month, day, hour, min; local 128 year = strtoi(c, NULL); 132 if (year < 1995 || month == 0 || day == 0) 153 return (YEAR(year) + MONTH(month) +
|
/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmxscan.c | 41 int year; member in struct:__anon2675 55 #define CLEAR(s) (s.year=s.mon=s.week=s.weektype=s.yday=s.mday=s.wday=s.hour=s.min=s.sec=s.meridian=(-1),s.nsec=1000000000L,s.zone=TM_LOCALZONE) 80 if (set->year >= 0) 81 tm->tm_year = set->year; 84 if (set->year < 0 && set->mon < tm->tm_mon) 251 set.year = (n - 19) * 100 + tm->tm_year % 100; 366 set.year = n; 370 set.year = n - 1900;
|
/illumos-gate/usr/src/uts/sun4u/snowbird/io/todds1307/ |
H A D | todds1307.c | 422 int year; local 428 * Year is base 1900, valid year range 1969-2068 433 year = tod.tod_year; 434 if (year >= 100) 435 year -= 100; 437 rtc.rtc_year = int2bcd(year); 503 * to accomodate sec, min, hrs, dayOfWeek, dayOfMonth, year 718 int year; local 731 year = p1275_cell2int(ci[6]); 738 if (year > 755 int year; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | tmplout.c | 925 if ( len > 15 ) { /* throw away excess from 4-digit year time string */ 928 len = 13; /* assume we have a time w/2-digit year (len=13) */ 1006 year; 1019 year = YEAR (tm -> tm_year); 1022 for (i = 1970; i < year; i++) 1024 if (dysize (year) == 366 && mon >= 3) 1005 year; local
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 1356 * into year/month/day/hour/minute/second format, and back again. 1372 long dse, day, month, year; local 1398 year = dse / 365 + 72; /* first guess -- always a bit too large */ 1400 year--; 1401 day = dse - 365 * (year - 70) - ((year - 69) >> 2); 1404 month = ((year & 3) << 4) + 1; 1410 tod.tod_year = year; 1420 int year = tod.tod_year; local 1421 int month = tod.tod_month + ((year [all...] |
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 1521 int day, year; /* Day of month and year */ local 1525 if (sscanf(s, "%*s%d%15s%d%d:%d:%d", &day, mon, &year, &hour, &min, &sec) < 6) 1537 tdate.tm_year = year - 1900;
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.c | 1312 unsigned year,month,day,hour,min,sec; /* Calendar time components */ local 1344 if(sscanf(timestr, "%4u%2u%2u%2u%2u%2u", &year, &month, &day, &hour, &min, 1363 t.tm_year = year - 1900;
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | localtime.c | 129 #define DAY_OF_YEAR 1 /* n - day of year */ 160 static time_t transtime P((time_t janfirst, int year, 596 ** Day of year. 614 ** Given the Epoch-relative time of January 1, 00:00:00 GMT, in a year, the 615 ** year, a rule, and the offset from GMT at the time that rule takes effect, 620 transtime(janfirst, year, rulep, offset) 622 const int year; 631 leapyear = isleap(year); 649 ** n - day of year. 669 yy0 = (rulep->r_mon <= 2) ? (year 785 register int year; local [all...] |