Home
last modified time | relevance | path

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

1234

/titanic_50/usr/src/uts/common/fs/pcfs/
H A Dpc_subr.c121 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 …]
/titanic_50/usr/src/cmd/scadm/sparc/mpxu/common/
H A Ddate.c158 if (specTime.year != DP_SET_DATE_TIME_IGNORE_FIELD) in ADM_Set_Date()
159 specTime.year = specTime.year - 1900; in ADM_Set_Date()
205 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date()
219 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date()
235 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date()
253 Date->year = DP_SET_DATE_TIME_IGNORE_FIELD; in ADM_Decode_Date()
275 Date->year = localDate + 1900; in ADM_Decode_Date()
277 Date->year = localDate + 2000; in ADM_Decode_Date()
287 if ((Date->year < 1970) || (Date->year > 2038)) in ADM_Decode_Date()
300 Date->year = localDate + 1900; in ADM_Decode_Date()
[all …]
/titanic_50/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_time.c206 ulong_t days, year, month, inc; in smb_time_unix2dos() local
242 for (year = 1970; ; year++) { in smb_time_unix2dos()
247 inc = year & 0x03 ? 365 : 366; in smb_time_unix2dos()
255 months = year & 0x03 ? regyear : leapyear; in smb_time_unix2dos()
268 if (year > 1980) in smb_time_unix2dos()
269 lastddate += (year - 1980) << in smb_time_unix2dos()
298 ulong_t year; in smb_dos2unixtime() local
320 year = (dd & DD_YEAR_MASK) >> DD_YEAR_SHIFT; in smb_dos2unixtime()
321 days = year * 365; in smb_dos2unixtime()
322 days += year / 4 + 1; /* add in leap days */ in smb_dos2unixtime()
[all …]
/titanic_50/usr/src/uts/common/fs/hsfs/
H A Dhsfs_subr.c63 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);
244 hs_date_to_gmtime(year, mon, day, gmtoff) in hs_date_to_gmtime() argument
[all …]
/titanic_50/usr/src/data/zoneinfo/
H A Dantarctica7 # To keep things manageable, we list only locations occupied year-round; see
18 # Argentina - year-round bases
35 # year-round bases
101 # Belgium - year-round base
104 # Brazil - year-round base
107 # Bulgaria - year-round base
110 # Chile - year-round bases and towns
119 # China - year-round bases
123 # France - year-round bases (also see "France & Italy")
132 # French Southern Territories with year-round inhabitants
[all …]
/titanic_50/usr/src/uts/sun4u/snowbird/io/todds1307/
H A Dtodds1307.c422 int year; in todds1307_set() local
433 year = tod.tod_year; in todds1307_set()
434 if (year >= 100) in todds1307_set()
435 year -= 100; in todds1307_set()
437 rtc.rtc_year = int2bcd(year); in todds1307_set()
718 int year; in todds1307_prom_getdate() local
731 year = p1275_cell2int(ci[6]); in todds1307_prom_getdate()
738 if (year >= 2000) in todds1307_prom_getdate()
739 year -= 2000; in todds1307_prom_getdate()
741 year -= 1900; in todds1307_prom_getdate()
[all …]
/titanic_50/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dcvrt_spd_data.c103 ushort_t year; in cvrt_dim_data() local
120 year = spd->manu_year; in cvrt_dim_data()
122 if (year < 80) in cvrt_dim_data()
123 year += 2000; in cvrt_dim_data()
125 year += 1900; in cvrt_dim_data()
155 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[0] = (uchar_t)(year >> 8); in cvrt_dim_data()
156 (*sp_seg_ptr + SPD_R_OFF + MANUF_YEAR)[1] = (uchar_t)year; in cvrt_dim_data()
/titanic_50/usr/src/lib/libc/port/gen/
H A Dctime.c117 int year = t->tm_year + 1900; in __posix_asctime_r() local
137 if (year < 0 || year >= 10000) { in __posix_asctime_r()
142 cp = ct_numb(cp, year / 100, '0'); in __posix_asctime_r()
144 (void) ct_numb(cp, year, '0'); in __posix_asctime_r()
/titanic_50/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c95 int sec, min, hour, day, month, year; in get_time() local
97 year = BCD_TO_BYTE(mostek[6]) + YRBASE; in get_time()
98 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4); in get_time()
104 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ in get_time()
106 utc += (utc << 2) + ((year - 69) >> 2); in get_time()
/titanic_50/usr/src/uts/sun4u/io/
H A Dtodds1337.c444 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 Dtodm5819p_rmc.c251 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()
/titanic_50/usr/src/grub/grub-0.97/docs/
H A Dmdate-sh136 *:*) set `date`; eval year=\$$#
155 year=`expr $year - 1`
157 *) year=$3;;
161 echo $day $month $year
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dgmt_mktime.c37 #define hasleapday(year) (year%400?(year%100?(year%4?0:1):0):1) argument
/titanic_50/usr/src/lib/libast/common/tm/
H A Dtmxscan.c41 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()
/titanic_50/usr/src/cmd/auditreduce/
H A Dtime.c176 int year = tme->tm_year + 1900; in tm_to_secs() local
178 if (days_in_year(year) == 366) in tm_to_secs()
181 while (year > 1970) { in tm_to_secs()
182 num_sec += days_in_year(--year) * 24 * 60 * 60; in tm_to_secs()
490 days_in_year(int year) in days_in_year() argument
492 if (isleap(year)) in days_in_year()
/titanic_50/usr/src/uts/common/fs/sockfs/
H A Dnl7chttp.c217 ssize_t year; in http_date2time_t() local
360 year = n; in http_date2time_t()
571 year = n; in http_date2time_t()
575 leap = year; in http_date2time_t()
579 secs = ((((year - 1970) * 365 + dom[month] + day - 1 + leap) * 24 in http_date2time_t()
599 ssize_t year; in http_today() local
618 year = 1970; in http_today()
620 if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) in http_today()
627 year++; in http_today()
631 if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) in http_today()
[all …]
/titanic_50/usr/src/cmd/dtrace/demo/
H A Dmkdemo.pl99 my $year = localtime->year() + 1900;
214 print HTML localtime->year() + 1900;
/titanic_50/usr/src/uts/common/os/
H A Dtimers.c1372 long dse, day, month, year; in utc_to_tod() local
1398 year = dse / 365 + 72; /* first guess -- always a bit too large */ in utc_to_tod()
1400 year--; in utc_to_tod()
1401 day = dse - 365 * (year - 70) - ((year - 69) >> 2); in utc_to_tod()
1404 month = ((year & 3) << 4) + 1; in utc_to_tod()
1410 tod.tod_year = year; in utc_to_tod()
1420 int year = tod.tod_year; in tod_to_utc() local
1421 int month = tod.tod_month + ((year & 3) << 4); in tod_to_utc()
1436 if (year_warn && (year < 70 || year > 8029)) { in tod_to_utc()
1440 year); in tod_to_utc()
[all …]
/titanic_50/usr/src/cmd/touch/
H A Dtouch.c271 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()
/titanic_50/usr/src/lib/libc/port/locale/
H A Dstrftime.c305 int year; in _fmt() local
311 year = t->tm_year; in _fmt()
320 len = isleap_sum(year, base) ? in _fmt()
347 yday += isleap_sum(year, base) ? in _fmt()
360 pt = _yconv(year, base, 0, 1, in _fmt()
363 pt = _yconv(year, base, 1, 1, in _fmt()
/titanic_50/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_vercheck.c87 int maj, year, month, day, hour, min; in obp_timestamp() local
128 year = strtoi(c, NULL); in obp_timestamp()
132 if (year < 1995 || month == 0 || day == 0) in obp_timestamp()
153 return (YEAR(year) + MONTH(month) + in obp_timestamp()
/titanic_50/usr/src/cmd/acct/lib/
H A Dpnpsplit.c333 day_of_year(year, month, day) in day_of_year() argument
337 leap = year%4 == 0 && year%100 || year%400 == 0; in day_of_year()
/titanic_50/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c1082 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_dirdate() local
1084 year = HDE_DATE_YEAR(dp); in hs_parse_dirdate()
1093 if (year < THE_EPOCH) { in hs_parse_dirdate()
1096 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_dirdate()
1117 int year, month, day, hour, minute, sec, gmtoff; in hs_parse_longdate() local
1119 year = HSV_DATE_YEAR(dp); in hs_parse_longdate()
1128 if (year < THE_EPOCH) { in hs_parse_longdate()
1131 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff); in hs_parse_longdate()
1160 hs_date_to_gmtime(int year, int mon, int day, int gmtoff) in hs_date_to_gmtime() argument
1166 if ((year < THE_EPOCH) || (year > END_OF_TIME) || in hs_date_to_gmtime()
[all …]
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Dlocaltime.c160 static time_t transtime P((time_t janfirst, int year,
620 transtime(janfirst, year, rulep, offset) in transtime() argument
622 const int year;
631 leapyear = isleap(year);
669 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year;
785 register int year; local
818 for (year = EPOCH_YEAR; year <= 2037; ++year) {
819 starttime = transtime(janfirst, year, &start,
821 endtime = transtime(janfirst, year, &end,
835 year_lengths[isleap(year)] * SECSPERDAY;
/titanic_50/usr/src/cmd/zic/
H A Dzic.c137 static int yearistype(int year, const char *type);
1143 int year, month, day; local
1153 if (sscanf(cp, scheck(cp, "%d"), &year) != 1) {
1161 while (j != year) {
1162 if (year > j) {
1178 i = len_months[isleap(year)][j];
1184 day <= 0 || day > len_months[isleap(year)][month]) {
1642 register int year; local
1690 for (year = min_year; year <= max_year; ++year) {
1691 if (useuntil && year > zp->z_untilrule.r_hiyear)
[all …]

1234