/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_subr.c | 121 uint_t year, month, day, hour, min, sec; in pc_tvtopct() local 133 for (year = YEAR_ZERO; unixtime >= days_in_year(year) * 86400; in pc_tvtopct() 134 year++) in pc_tvtopct() 135 unixtime -= 86400 * days_in_year(year); in pc_tvtopct() 137 if (year > 127 + YEAR_ZERO) { in pc_tvtopct() 145 for (month = 1; unixtime >= 86400 * days_in_month(month, year); in pc_tvtopct() 147 unixtime -= 86400 * days_in_month(month, year); in pc_tvtopct() 149 year -= YEAR_ZERO; in pc_tvtopct() 162 PC_DPRINTF3(1, "ux2pc date: %d.%d.%d\n", day, month, YEAR_ZERO + year); in pc_tvtopct() 166 ASSERT(year >= 0 && year < 128); in pc_tvtopct() [all …]
|
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | date.c | 156 if (specTime.year != DP_SET_DATE_TIME_IGNORE_FIELD) in ADM_Set_Date() 157 specTime.year = specTime.year - 1900; in ADM_Set_Date() 203 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date() 217 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date() 233 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date() 251 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date() 273 Date->year = localDate + 1900; in ADM_Decode_Date() 275 Date->year = localDate + 2000; in ADM_Decode_Date() 285 if ((Date->year < 1970) || (Date->year > 2038)) in ADM_Decode_Date() 298 Date->year = localDate + 1900; in ADM_Decode_Date() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_glue.c | 484 leapyear(int year) in leapyear() argument 488 if ((year & 3) == 0) { in leapyear() 490 if ((year % 100) == 0) { in leapyear() 492 if ((year % 400) == 0) in leapyear() 502 int i, year, days; in clock_ct_to_ts() local 504 year = ct->year; in clock_ct_to_ts() 516 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts() 518 (sizeof (time_t) == 4 && year > 2037)) { /* time_t overflow */ in clock_ct_to_ts() 531 for (i = POSIX_BASE_YEAR; i < year; i++) in clock_ct_to_ts() 536 days += days_in_month(year, i); in clock_ct_to_ts() [all …]
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_subr.c | 61 static time_t hs_date_to_gmtime(int year, int mon, int day, int gmtoff); 162 int year, month, day, hour, minute, sec, gmtoff; local 164 year = HDE_DATE_YEAR(dp); 173 if (year < THE_EPOCH) { 176 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 199 int year, month, day, hour, minute, sec, gmtoff; local 201 year = HSV_DATE_YEAR(dp); 210 if (year < THE_EPOCH) { 213 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); 242 hs_date_to_gmtime(year, mon, day, gmtoff) in hs_date_to_gmtime() argument [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/ |
H A D | test_misc.c | 195 int year; in smb_gmtime_r() local 209 year = EPOCH_YEAR; in smb_gmtime_r() 210 while (tsec >= (isleap(year) ? (SECSPERDAY * DAYSPERLYEAR) : in smb_gmtime_r() 212 if (isleap(year)) in smb_gmtime_r() 217 ++year; in smb_gmtime_r() 220 result->tm_year = year - TM_YEAR_BASE; in smb_gmtime_r() 226 if (month == TM_FEBRUARY && isleap(year)) in smb_gmtime_r() 269 int year; in smb_timegm() local 274 year = tm->tm_year + TM_YEAR_BASE; in smb_timegm() 277 for (yy = EPOCH_YEAR; yy < year; ++yy) { in smb_timegm() [all …]
|
/illumos-gate/usr/src/data/zoneinfo/ |
H A D | antarctica | 7 # To keep things manageable, we list only locations occupied year-round; see 18 # Argentina - year-round bases 35 # year-round bases 126 # Belgium - year-round base 129 # Brazil - year-round base 132 # Bulgaria - year-round base 135 # Chile - year-round bases and towns 144 # China - year-round bases 148 # France - year-round bases (also see "France & Italy") 157 # French Southern Territories with year-round inhabitants [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | cvrt_spd_data.c | 101 ushort_t year; in cvrt_dim_data() local 118 year = spd->manu_year; in cvrt_dim_data() 120 if (year < 80) in cvrt_dim_data() 121 year += 2000; in cvrt_dim_data() 123 year += 1900; in cvrt_dim_data() 153 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[0] = (uchar_t)(year >> 8); in cvrt_dim_data() 154 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[1] = (uchar_t)year; in cvrt_dim_data()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | todds1337.c | 444 int year; in todds1337_set() local 455 year = tod.tod_year; in todds1337_set() 456 if (year >= 100) in todds1337_set() 457 year -= 100; in todds1337_set() 459 rtc.rtc_year = (uint8_t)year; in todds1337_set() 948 int year; in todds1337_prom_getdate() local 961 year = p1275_cell2int(ci[6]); in todds1337_prom_getdate() 968 if (year >= 2000) in todds1337_prom_getdate() 969 year -= 2000; in todds1337_prom_getdate() 971 year -= 1900; in todds1337_prom_getdate() [all …]
|
H A D | todm5819p_rmc.c | 251 int year; in todm5819p_rmc_set() local 258 year = 1900 + tod.tod_year; in todm5819p_rmc_set() 259 rtc.rtc_year = year % 100; in todm5819p_rmc_set() 260 rtc.rtc_century = year / 100; in todm5819p_rmc_set() 270 set_time_msg.year = year - 1900; in todm5819p_rmc_set()
|
H A D | todbq4802.c | 250 int year; in todbq4802_set() local 255 year = 1900 + tod.tod_year; in todbq4802_set() 256 rtc.rtc_year = year % 100; in todbq4802_set() 257 rtc.rtc_century = year / 100; in todbq4802_set()
|
H A D | todm5819.c | 247 int year; in todm5819_set() local 252 year = 1900 + tod.tod_year; in todm5819_set() 253 rtc.rtc_year = year % 100; in todm5819_set() 254 rtc.rtc_century = year / 100; in todm5819_set()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ctime.c | 115 int year = t->tm_year + 1900; in __posix_asctime_r() local 135 if (year < 0 || year >= 10000) { in __posix_asctime_r() 140 cp = ct_numb(cp, year / 100, '0'); in __posix_asctime_r() 142 (void) ct_numb(cp, year, '0'); in __posix_asctime_r()
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | display_funcs.c | 93 int sec, min, hour, day, month, year; in get_time() local 95 year = BCD_TO_BYTE(mostek[6]) + YRBASE; in get_time() 96 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4); in get_time() 102 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ in get_time() 104 utc += (utc << 2) + ((year - 69) >> 2); in get_time()
|
/illumos-gate/usr/src/grub/grub-0.97/docs/ |
H A D | mdate-sh | 136 *:*) set `date`; eval year=\$$# 155 year=`expr $year - 1` 157 *) year=$3;; 161 echo $day $month $year
|
/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) argument
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxscan.c | 41 int year; member 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… 80 if (set->year >= 0) in gen() 81 tm->tm_year = set->year; in gen() 84 if (set->year < 0 && set->mon < tm->tm_mon) in gen() 251 set.year = (n - 19) * 100 + tm->tm_year % 100; in scan() 366 set.year = n; in scan() 370 set.year = n - 1900; in scan()
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 174 int year = tme->tm_year + 1900; in tm_to_secs() local 176 if (days_in_year(year) == 366) in tm_to_secs() 179 while (year > 1970) { in tm_to_secs() 180 num_sec += days_in_year(--year) * 24 * 60 * 60; in tm_to_secs() 488 days_in_year(int year) in days_in_year() argument 490 if (isleap(year)) in days_in_year()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | timers.c | 1397 long dse, day, month, year; in utc_to_tod() local 1423 year = dse / 365 + 72; /* first guess -- always a bit too large */ in utc_to_tod() 1425 year--; in utc_to_tod() 1426 day = dse - 365 * (year - 70) - ((year - 69) >> 2); in utc_to_tod() 1429 month = ((year & 3) << 4) + 1; in utc_to_tod() 1435 tod.tod_year = year; in utc_to_tod() 1445 int year = tod.tod_year; in tod_to_utc() local 1446 int month = tod.tod_month + ((year & 3) << 4); in tod_to_utc() 1461 if (year_warn && (year < 70 || year > 8029)) { in tod_to_utc() 1465 year); in tod_to_utc() [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/cmd/touch/ |
H A D | touch.c | 271 char *year; in parse_datetime() local 308 year = strsep(&p, "-"); in parse_datetime() 317 if (year == NULL || strlen(year) < 4 || !isnumber(year) || in parse_datetime() 328 tm.tm_year = atoi(year) - 1900; in parse_datetime()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strftime.c | 327 int year; in _fmt() local 333 year = t->tm_year; in _fmt() 342 len = isleap_sum(year, base) ? in _fmt() 369 yday += isleap_sum(year, base) ? in _fmt() 382 pt = _yconv(year, base, 0, 1, in _fmt() 385 pt = _yconv(year, base, 1, 1, in _fmt()
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | pnpsplit.c | 335 day_of_year(int year, int month, int day) in day_of_year() argument 339 leap = year%4 == 0 && year%100 || year%400 == 0; in day_of_year()
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | vrtc.c | 75 uint8_t year; member 358 ASSERT(ct.year >= POSIX_BASE_YEAR); in vrtc_time_to_cmos() 396 rtc->year = rtc_enc(rtc, ct.year % 100); in vrtc_time_to_cmos() 397 rtc->century = rtc_enc(rtc, ct.year / 100); in vrtc_time_to_cmos() 568 const uint_t year = rtc_dec(rtc, rtc->year, &err); in vrtc_cmos_to_secs() local 569 if (err || year > 99) { in vrtc_cmos_to_secs() 575 ct.year = century * 100 + year; in vrtc_cmos_to_secs() 576 if (err || ct.year < POSIX_BASE_YEAR) { in vrtc_cmos_to_secs()
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 1083 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_dirdate() local 1085 year = HDE_DATE_YEAR(dp); in hs_parse_dirdate() 1094 if (year < THE_EPOCH) { in hs_parse_dirdate() 1097 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_dirdate() 1118 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_longdate() local 1120 year = HSV_DATE_YEAR(dp); in hs_parse_longdate() 1129 if (year < THE_EPOCH) { in hs_parse_longdate() 1132 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_longdate() 1161 hs_date_to_gmtime(int year, int mon, int day, int gmtoff) in hs_date_to_gmtime() argument 1167 if ((year < THE_EPOCH) || (year > END_OF_TIME) || in hs_date_to_gmtime() [all …]
|
/illumos-gate/usr/src/cmd/zic/ |
H A D | zic.c | 137 static int yearistype(int year, const char *type); 1145 int year, month, day; local 1155 if (sscanf(cp, scheck(cp, "%d"), &year) != 1) { 1163 while (j != year) { 1164 if (year > j) { 1180 i = len_months[isleap(year)][j]; 1186 day <= 0 || day > len_months[isleap(year)][month]) { 1644 register int year; local 1692 for (year = min_year; year <= max_year; ++year) { 1693 if (useuntil && year > zp->z_untilrule.r_hiyear) [all …]
|