OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:TM_YEAR_BASE
(Results
1 - 25
of
28
) sorted by relevancy
1
2
/src/lib/libc/time/
asctime.c
98
long long_TM_YEAR_BASE =
TM_YEAR_BASE
;
133
Also, avoid overflow when formatting tm_year +
TM_YEAR_BASE
. */
135
if ((size_t)(year <= INT_MAX -
TM_YEAR_BASE
137
((-999 -
TM_YEAR_BASE
<= year
138
&& year <= 9999 -
TM_YEAR_BASE
)
146
year / 10 +
TM_YEAR_BASE
/ 10,
strptime.c
280
i = i * 100 -
TM_YEAR_BASE
;
434
i =
TM_YEAR_BASE
; /* just for data sanity... */
436
tm->tm_year = i -
TM_YEAR_BASE
;
451
i = i + 2000 -
TM_YEAR_BASE
;
453
i = i + 1900 -
TM_YEAR_BASE
;
675
TM_YEAR_BASE
)][tm->tm_mon] + (tm->tm_mday - 1);
687
first_wday_of(tm->tm_year +
TM_YEAR_BASE
) +
700
isleap = isleap_sum(tm->tm_year,
TM_YEAR_BASE
);
714
isleap = isleap_sum(tm->tm_year,
TM_YEAR_BASE
);
723
TM_YEAR_BASE
);
[
all
...]
strftime.c
290
pt = _yconv(t->tm_year,
TM_YEAR_BASE
,
519
base =
TM_YEAR_BASE
;
617
pt = _yconv(t->tm_year,
TM_YEAR_BASE
,
622
pt = _yconv(t->tm_year,
TM_YEAR_BASE
,
localtime.c
2492
*ltm_year = y -
TM_YEAR_BASE
;
2495
if (ckd_add(&tmp->tm_year, y, -
TM_YEAR_BASE
)) {
2500
if (!TYPE_SIGNED(time_t) && y <
TM_YEAR_BASE
) {
2502
tmp->tm_year = signed_y -
TM_YEAR_BASE
;
2503
} else if ((!TYPE_SIGNED(time_t) || INT_MIN +
TM_YEAR_BASE
<= y)
2504
&& y -
TM_YEAR_BASE
<= INT_MAX)
2505
tmp->tm_year = y -
TM_YEAR_BASE
;
2517
+ ((y % DAYSPERWEEK -
TM_YEAR_BASE
% DAYSPERWEEK)
2521
- leaps_thru_end_of(
TM_YEAR_BASE
- 1)
2731
** It is converted back to an offset from
TM_YEAR_BASE
later
[
all
...]
zdump.c
719
result += year_sum_days(tmy,
TM_YEAR_BASE
);
746
yday += year_sum_days(b->tm_year,
TM_YEAR_BASE
);
1191
trail = timeptr->tm_year % DIVISOR +
TM_YEAR_BASE
% DIVISOR;
1192
lead = timeptr->tm_year / DIVISOR +
TM_YEAR_BASE
/ DIVISOR +
private.h
1203
#ifndef
TM_YEAR_BASE
1205
TM_YEAR_BASE
= 1900,
/src/usr.bin/at/
stime.c
81
t->tm_year = ATOI2(arg) * 100 -
TM_YEAR_BASE
;
89
t->tm_year = conv_2dig_year(yearset) -
TM_YEAR_BASE
;
parsetime.c
427
if (year >=
TM_YEAR_BASE
)
428
tm->tm_year = year -
TM_YEAR_BASE
;
433
tm->tm_year = conv_2dig_year(year) -
TM_YEAR_BASE
;
512
assign_date(tm, mday, tm->tm_mon, tm->tm_year +
TM_YEAR_BASE
);
/src/include/
tzfile.h
164
#define
TM_YEAR_BASE
1900
/src/external/bsd/unbound/dist/compat/
gmtime_r.c
28
#define
TM_YEAR_BASE
1900
88
tmp->tm_year = y -
TM_YEAR_BASE
;
strptime.c
48
#define
TM_YEAR_BASE
1900
167
tm->tm_year = ret*100 -
TM_YEAR_BASE
;
323
tm->tm_year = ret -
TM_YEAR_BASE
;
/src/external/gpl2/xcvs/dist/lib/
mktime.c
118
#define
TM_YEAR_BASE
1900
119
verify (base_year_is_a_multiple_of_100,
TM_YEAR_BASE
% 100 == 0);
121
/* Return 1 if YEAR +
TM_YEAR_BASE
is a leap year. */
125
/* Don't add YEAR to
TM_YEAR_BASE
, as that might overflow.
130
|| ((year / 100) & 3) == (- (
TM_YEAR_BASE
/ 100) & 3)));
178
int a4 = SHR (year1, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (year1 & 3);
179
int b4 = SHR (year0, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (year0 & 3);
340
EPOCH_YEAR -
TM_YEAR_BASE
, 0, 0, 0, - guessed_offset);
364
- SHR (EPOCH_YEAR -
TM_YEAR_BASE
, LOG2_YEARS_PER_BIENNIUM)
550
tp->tm_year +
TM_YEAR_BASE
, tp->tm_mon + 1, tp->tm_mday
[
all
...]
strftime.c
133
#define
TM_YEAR_BASE
1900
298
int a4 = SHR (a->tm_year, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (a->tm_year & 3);
299
int b4 = SHR (b->tm_year, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (b->tm_year & 3);
820
int century = tp->tm_year / 100 +
TM_YEAR_BASE
/ 100;
822
DO_SIGNED_NUMBER (2, tp->tm_year < -
TM_YEAR_BASE
, century);
1142
/* YEAR is a leap year if and only if (tp->tm_year +
TM_YEAR_BASE
)
1144
correctly even when (tp->tm_year +
TM_YEAR_BASE
) would
1148
?
TM_YEAR_BASE
% 400
1149
:
TM_YEAR_BASE
% 400 - 400));
1179
: tp->tm_year < -
TM_YEAR_BASE
- year_adjus
[
all
...]
getdate.y
114
#define
TM_YEAR_BASE
1900
864
int a4 = SHR (a->tm_year, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (a->tm_year & 3);
865
int b4 = SHR (b->tm_year, 2) + SHR (
TM_YEAR_BASE
, 2) - ! (b->tm_year & 3);
1240
pc.year.value +=
TM_YEAR_BASE
;
1336
tm.tm_year = to_year (pc.year) -
TM_YEAR_BASE
;
/src/external/mpl/bind/dist/lib/isc/
tm.c
72
#ifndef
TM_YEAR_BASE
73
#define
TM_YEAR_BASE
1900
74
#endif /* ifndef
TM_YEAR_BASE
*/
430
tm->tm_year = i -
TM_YEAR_BASE
;
445
tm->tm_year = i + 2000 -
TM_YEAR_BASE
;
447
tm->tm_year = i + 1900 -
TM_YEAR_BASE
;
/src/external/mpl/dhcp/bind/dist/lib/isc/
tm.c
72
#ifndef
TM_YEAR_BASE
73
#define
TM_YEAR_BASE
1900
74
#endif /* ifndef
TM_YEAR_BASE
*/
431
tm->tm_year = i -
TM_YEAR_BASE
;
446
tm->tm_year = i + 2000 -
TM_YEAR_BASE
;
448
tm->tm_year = i + 1900 -
TM_YEAR_BASE
;
/src/external/bsd/nsd/dist/compat/
strptime.c
50
#define
TM_YEAR_BASE
1900
171
tm->tm_year = ret*100 -
TM_YEAR_BASE
;
327
tm->tm_year = ret -
TM_YEAR_BASE
;
/src/external/bsd/ntp/dist/libntp/
mktime.c
90
#define
TM_YEAR_BASE
1900
207
year_lengths[isleap(yourtm.tm_year +
TM_YEAR_BASE
)];
211
TM_YEAR_BASE
)][yourtm.tm_mon];
/src/usr.bin/touch/
touch.c
273
t->tm_year = ATOI2(arg) * 100 -
TM_YEAR_BASE
;
283
LOW_YEAR_CENTURY -
TM_YEAR_BASE
;
286
HIGH_YEAR_CENTURY -
TM_YEAR_BASE
;
334
t->tm_year = year + LOW_YEAR_CENTURY -
TM_YEAR_BASE
;
336
t->tm_year = year + HIGH_YEAR_CENTURY -
TM_YEAR_BASE
;
/src/bin/pax/
sel_subs.c
580
lt->tm_year = ATOI2(p) * 100 -
TM_YEAR_BASE
;
589
lt->tm_year = yearset + 2000 -
TM_YEAR_BASE
;
591
lt->tm_year = yearset + 1900 -
TM_YEAR_BASE
;
/src/bin/date/
date.c
429
lt->tm_year = ATOI2(p) * 100 -
TM_YEAR_BASE
;
440
lt->tm_year = yearset + 2000 -
TM_YEAR_BASE
;
442
lt->tm_year = yearset + 1900 -
TM_YEAR_BASE
;
474
if (isleap(lt->tm_year +
TM_YEAR_BASE
)) {
/src/usr.bin/calendar/
calendar.c
246
if (isleap(tp->tm_year +
TM_YEAR_BASE
)) {
704
ttm.tm_year = ATOI2(ds) * 100 -
TM_YEAR_BASE
;
710
ttm.tm_year += 2000 -
TM_YEAR_BASE
;
712
ttm.tm_year += 1900 -
TM_YEAR_BASE
;
/src/sbin/shutdown/
shutdown.c
483
lt->tm_year = ATOI2(timearg) * 100 -
TM_YEAR_BASE
;
492
lt->tm_year = yearset + 2100 -
TM_YEAR_BASE
;
494
lt->tm_year = yearset + 2000 -
TM_YEAR_BASE
;
/src/external/gpl2/diffutils/dist/lib/
strftime.c
162
#define
TM_YEAR_BASE
1900
369
int a4 = (a->tm_year >> 2) + (
TM_YEAR_BASE
>> 2) - ! (a->tm_year & 3);
370
int b4 = (b->tm_year >> 2) + (
TM_YEAR_BASE
>> 2) - ! (b->tm_year & 3);
893
int year = tp->tm_year +
TM_YEAR_BASE
;
1195
int year = tp->tm_year +
TM_YEAR_BASE
;
1265
DO_NUMBER (1, tp->tm_year +
TM_YEAR_BASE
);
/src/usr.bin/cal/
cal.c
311
year = local_time->tm_year +
TM_YEAR_BASE
;
500
tm->tm_year +=
TM_YEAR_BASE
;
Completed in 51 milliseconds
1
2
Indexes created Sat Oct 03 00:25:10 UTC 2026