Searched refs:tm_year (Results 1 - 22 of 22) sorted by relevance

/ast/src/lib/libast/tm/
H A Dtmequiv.c56 return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->tm_year)];
H A Dtmfix.c34 #define LEAP(p) (tmisleapyear((p)->tm_year))
58 if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isdst)
60 tm->tm_year = 99;
110 tm->tm_year += tm->tm_mon / 12;
115 tm->tm_year--;
118 tm->tm_year += tm->tm_mon / 12;
124 tm->tm_year--;
130 tm->tm_year++;
137 tm->tm_year--;
147 tm->tm_year
[all...]
H A Dtmxtime.c63 y = tm->tm_year;
93 y = tm->tm_year;
94 tm->tm_year = tmequiv(tm) - 1900;
96 tm->tm_year = y;
110 y = tm->tm_year;
111 tm->tm_year = tmequiv(tm) - 1900;
114 tm->tm_year = y;
H A Dtmxmake.c99 tm->tm_year = (400 * (x + 25202)) / 146097 + 1;
100 n = tm->tm_year - 1;
110 if ((y = tmequiv(tm) - 1900) == tm->tm_year)
117 te.tm_year = y;
H A Dtmweek.c67 week = (day > 0 && day < 6 || tmisleapyear(tm->tm_year - 1)) ? 53 : 52;
H A Dtmxdate.c320 tm->tm_year += p;
649 tm->tm_year++;
735 tm->tm_year = m;
912 m = tm->tm_year;
965 tm->tm_year = m;
1124 tm->tm_year += n;
1399 tm->tm_mday = tm_data.days[tm->tm_mon] + (tm->tm_mon == 1 && tmisleapyear(tm->tm_year));
1417 tm->tm_year += m;
1511 tm->tm_year += f;
1570 tm->tm_year
[all...]
H A Dtmxscan.c81 tm->tm_year = set->year;
85 tm->tm_year++;
251 set.year = (n - 19) * 100 + tm->tm_year % 100;
H A Dtmxfmt.c263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad);
282 n = tm->tm_year + 1900;
579 cp = number(cp, ep, (long)(tm->tm_year % 100), 2, width, pad);
582 cp = number(cp, ep, (long)(1900 + tm->tm_year), 4, width, pad);
/ast/src/lib/libast/comp/
H A Dstrftime.c69 tm->tm_year < 0 || tm->tm_year > (2138 - 1900))
83 if (tm->tm_year >= 0 && tm->tm_year <= (2138 - 1900))
84 tl.tm_year = tm->tm_year;
93 tl.tm_year = tm->tm_year;
H A Dmktime.c60 tm.tm_year = ts->tm_year;
70 ts->tm_year = tm.tm_year;
H A Dstrptime.c61 tm.tm_year = ts->tm_year;
75 ts->tm_year = tm.tm_year;
H A Dgetdate.c76 ts.tm_year = tm->tm_year;
/ast/src/lib/libast/include/
H A Dtm.h143 int tm_year; member in struct:Tm_s
/ast/src/cmd/dsslib/time_t/
H A Dtime_t.c458 r->value.number = 1900 + state->tm.tm_year;
525 if ((state->tm.tm_year = a->value.number) >= 1900)
526 state->tm.tm_year -= 1900;
538 i += 365 + tmisleapyear(state->tm.tm_year);
/ast/src/cmd/pax/
H A Dpax-tnef.c141 tm.tm_year = swapget(ap->swap, s + 0, 2) - 1900;
H A Dpax-slt.c165 sfsprintf(slt->buf, sizeof(slt->buf), "%s1%-17.17s000001%04d%04d000100 %02d%03d 00000 %06d%-6.6sD%-7.7s ", type, f->id, slt->section, slt->sequence, tm->tm_year, tm->tm_yday, f->record.blocks, slt->format, slt->implementation);
/ast/src/cmd/paxlib/arj/
H A Darj.c180 tm.tm_year = ((dostime >> (16+9)) & 0x7f) + 80;
/ast/src/cmd/paxlib/lha/
H A Dlha.c165 tm.tm_year = ((dostime >> (16+9)) & 0x7f) + 80;
/ast/src/cmd/paxlib/rar/
H A Drar.c194 tm.tm_year = ((dostime >> (16+9)) & 0x7f) + 80;
/ast/src/cmd/paxlib/zoo/
H A Dzoo.c239 tm.tm_year = ((dosdate >> 9) & 0x7f) + 80;
/ast/src/cmd/paxlib/zip/
H A Dzip.c254 tm.tm_year = ((n>>25)&0377) + 80;
/ast/src/lib/libtksh/tcl/
H A DtclDate.c30 * The offset of tm_year of struct tm returned by localtime, gmtime, etc.
32 * ../compat/strftime.c all agree that tm_year is the year-1900. However,
523 Month = 12 * (tm->tm_year + TM_YEAR_BASE) + tm->tm_mon + RelMonth;
738 thisyear = tm->tm_year + TM_YEAR_BASE;

Completed in 28 milliseconds