/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/cmd/scadm/sparc/mpxu/common/ |
H A D | date.c | 155 /* Correct year to be offset from 1900. Why does firmware want this? */ 158 if (specTime.year != DP_SET_DATE_TIME_IGNORE_FIELD) 159 specTime.year = specTime.year - 1900; 205 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; 219 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; 235 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; 253 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; 275 Date->year = localDate + 1900; 277 Date->year [all...] |
/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/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/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | gmt_mktime.c | 37 #define hasleapday(year) (year%400?(year%100?(year%4?0:1):0):1) 72 accum *= 365; /* 365 days/normal year */ 79 /* add in leap day for this year */
|
/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/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/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/grub/grub-0.97/docs/ |
H A D | mdate-sh | 115 # Get the month. Next argument is day, followed by the year or time. 134 # the time of day or the year. 136 *:*) set `date`; eval year=\$$# 151 # For the first six month of the year the time notation can also 152 # be used for files modified in the last year. 155 year=`expr $year - 1` 157 *) year=$3;; 161 echo $day $month $year
|
/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/cmd/dtrace/demo/ |
H A D | mkdemo.pl | 99 my $year = localtime->year() + 1900; 214 print HTML localtime->year() + 1900;
|
/illumos-gate/usr/src/uts/sun4u/io/ |
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 | 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 | 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 | 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",
|
/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/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/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/common/fs/sockfs/ |
H A D | nl7chttp.c | 173 * of the year, and dom[] for day number of the year for the first day 174 * of each month (non leap year). 217 ssize_t year; local 279 /* Get day/month/year seperator */ 310 /* Get year */ 328 /* Case 1, get 2 more year digits */ 349 * Case 2, 2 digit year and as this is a so-called 352 * past the year 1999 into the year 203 599 ssize_t year; local [all...] |
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 49 static int holidays[NHOLIDAYS]; /* holidays file day-of-year table */ 192 int doy; /* day of the year */ 212 else if(++line == 1) { /* format: year p-start np-start */ 222 /* validate year */ 224 fprintf(stderr, "pnpsplit: invalid year: %d\n", 330 /* set day of year from month and day */ 333 day_of_year(year, month, day) 337 leap = year%4 == 0 && year%100 || year [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/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/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...] |