Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd/contrib/ntp/ntpd/
H A Dcheck_y2k.c138 #define Error(year) if ( (year)>=2036 && LocalTime.tm_year < 110 ) \ argument
146 int year; in main() local
155 year = ( sizeof( u_long ) > 4 ) /* save max span using year as temp */ in main()
164 yearend = year0 + year; in main()
173 (int)year0, (int)yearend, (int)year ); in main()
182 year = 1980; in main()
183 LocalTime.tm_year = year - 1900; in main()
185 Error(year); /* should increment Fatals */ in main()
190 (int)year, __FILE__, __LINE__, (int)Fatals, (int)Warnings ); in main()
194 year = 2100; /* test year > limit but CURRENT year < limit */ in main()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dyear.h31 class year {
36 year() = default;
37 _LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>(__val)) {} in year() function
39 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator++() noexcept {
43 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator++(int) noexcept {
44 year __tmp = *this;
48 _LIBCPP_HIDE_FROM_ABI inline constexpr year& operator--() noexcept { in is_leap()
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept { in max()
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year
[all...]
H A Dyear_month_day.h40 chrono::year __y_;
47 const chrono::year& __yval, const chrono::month& __mval, const chrono::day& __dval) noexcept in year_month_day()
60 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } in year() function
87 return year_month_day{chrono::year{__yr + (__mth <= 2)}, chrono::month{__mth}, chrono::day{__dy}}; in __from_days()
108 …return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day(…
113 if (auto __c = __lhs.year() <=> __rhs.year(); __c != 0)
121 return year_month_day{__lhs.year(), __lhs.month(), __rhs};
128 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day operator/(const year& __lhs, const month_day&…
133 return year(__lhs) / __rhs;
136 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day operator/(const month_day& __lhs, const year&…
[all …]
H A Dyear_month_weekday.h21 #include <__chrono/year.h>
37 chrono::year __y_;
44 const chrono::year& __yval, const chrono::month& __mval, const chrono::weekday_indexed& __wdival) noexcept in year_month_weekday()
55 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } in year() function
83 return year_month_weekday{__ymd.year(), __ymd.month(), __wd[(static_cast<unsigned>(__ymd.day()) - 1) / 7 + 1]}; in __from_days()
93 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && in __to_days()
99 return year_month_weekday{__lhs.year(), __lhs.month(), __rhs};
103 operator/(const year
166 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } year() function
[all...]
H A Dyear_month.h15 #include <__chrono/year.h>
30 chrono::year __y_;
35 _LIBCPP_HIDE_FROM_ABI constexpr year_month(const chrono::year& __yval, const chrono::month& __mval) noexcept in year_month()
37 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } in year() function
46 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month operator/(const year& __y, const month& __m) noexcept {
50 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month operator/(const year& __y, int __m) noexcept {
55 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month();
60 if (auto __c = __lhs.year() <
[all...]
/freebsd/sys/kern/
H A Dsubr_clock.c119 leapyear(int year) in leapyear() argument
123 if ((year & 3) == 0) { in leapyear()
125 if ((year % 100) == 0) { in leapyear()
127 if ((year % 400) == 0) in leapyear()
137 int i, year, days; in clock_ct_to_ts() local
150 year = ct->year; in clock_ct_to_ts()
151 if (year < 70) in clock_ct_to_ts()
152 year += 2000; in clock_ct_to_ts()
153 else if (year < 200) in clock_ct_to_ts()
154 year += 1900; in clock_ct_to_ts()
[all …]
/freebsd/usr.bin/calendar/
H A Dparsedata.c50 static char *floattoday(int year, double f);
52 static int wdayom (int day, int offset, int month, int year);
93 char *modifierindex, char *specialday, char *year, int *iyear) in determinestyle() argument
103 *year = '\0'; in determinestyle()
201 strlcpy(year, p1, SLEN); in determinestyle()
202 *iyear = (int)strtol(year, NULL, 10); in determinestyle()
341 char *year, int iyear) in debug_determinestyle() argument
354 if (year[0] != '\0') in debug_determinestyle()
355 printf("year: |%s| (%d)\n", year, iyear); in debug_determinestyle()
367 int year; member
[all …]
H A Dsunpos.c200 equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays) in equinoxsolstice() argument
204 fequinoxsolstice(year, UTCoffset, fe, fs); in equinoxsolstice()
212 fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays) in fequinoxsolstice() argument
222 cumdays = cumdaytab[isleap(year)]; in fequinoxsolstice()
231 sunpos(year, 3, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft); in fequinoxsolstice()
232 sunpos(year, 3, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0, in fequinoxsolstice()
243 sunpos(year, 3, d, UTCoffset, in fequinoxsolstice()
270 sunpos(year, 9, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft); in fequinoxsolstice()
271 sunpos(year, 9, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0, in fequinoxsolstice()
282 sunpos(year, 9, d, UTCoffset, in fequinoxsolstice()
[all …]
H A Dostern.c46 easter(int year) /* 0 ... abcd, NOT since 1900 */ in easter() argument
55 G = year % 19; in easter()
56 C = year / 100; in easter()
59 J = (year + year / 4 + I + 2 - C + C / 4) % 7; in easter()
63 if (isleap(year)) in easter()
H A Ddates.c39 int year; /* 19xx, 20xx, 21xx */ member
52 struct cal_year *year; /* points back */ member
63 struct cal_year *year; /* points back */ member
96 if (py->year == y + 1900) in createdate()
106 py->year = y + 1900; in createdate()
136 pm->year = py; in createdate()
158 pd->year = py; in createdate()
243 printf("%-5d (wday:%d)\n", y->year, y->firstdayofweek); in dumpdates()
272 if (y->year != yy) { in remember_ymd()
308 if (y->year != yy) { in remember_yd()
[all …]
H A Dcalendar.h127 int year; member
193 void pom(int year, double UTCoffset, int *fms, int *nms);
194 void fpom(int year, double utcoffset, double *ffms, double *fnms);
197 void equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays);
198 void fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays);
199 int calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths);
/freebsd/usr.bin/at/
H A Dparsetime.c428 assign_date(struct tm *tm, long mday, long mon, long year) in assign_date() argument
435 if (year != -1) { in assign_date()
436 if (year >= 1900) in assign_date()
437 year -= 1900; /* convert from 4 digit year */ in assign_date()
438 else if (year < 100) { in assign_date()
447 year += (lt->tm_year / 100) * 100; in assign_date()
449 if (year == lt->tm_year - 1) year++; in assign_date()
450 else if (year < lt->tm_year) in assign_date()
451 year += 100; /* must be in next century */ in assign_date()
455 if (year < 0 && in assign_date()
[all …]
/freebsd/contrib/netbsd-tests/dev/clock_subr/
H A Dclock_subr_test_data_gen.sh16 for year in `seq 1970 1 2030`; do
17 datesub -d "${year}/01/01 00:00:00"
18 datesub -d "${year}/07/01 00:00:00"
20 for year in `seq 2000 25 2600`; do
21 datesub -d "$((${year} - 1))/12/31 23:59:59"
22 datesub -d "$((${year} + 0))/01/01 00:00:00"
23 datesub -d "$((${year} + 1))/01/01 00:00:00"
/freebsd/contrib/dialog/
H A Dcalendar.c182 adjust_year_month(int *year, int *month) in adjust_year_month() argument
186 *year -= 1; in adjust_year_month()
190 *year += 1; in adjust_year_month()
195 days_per_month(int year, int month) in days_per_month() argument
204 adjust_year_month(&year, &month); in days_per_month()
207 result += isleap(year); in days_per_month()
214 int year = current->tm_year + 1900; in days_in_month() local
217 adjust_year_month(&year, &month); in days_in_month()
218 return days_per_month(year, month); in days_in_month()
222 days_per_year(int year) in days_per_year() argument
[all …]
/freebsd/usr.bin/chpass/
H A Dutil.c83 int day, month, year; in atot() local
113 year = atoi(t); in atot()
117 if (year < 69) in atot()
118 year += 2000; in atot()
119 else if (year < 100) in atot()
120 year += 1900; in atot()
121 if (year < 1969) in atot()
123 lt->tm_year = year - 1900; in atot()
/freebsd/contrib/ntp/libntp/
H A Duglydate.c23 int year; in uglydate()
34 year = 0; in uglydate()
40 year = tm->tm_year; in uglydate()
41 while (year >= 100) in uglydate()
42 year -= 100; in uglydate()
45 "%17s %02d:%03d:%02d:%02d:%02d.%03ld", timep, year, in uglydate()
24 int year; uglydate() local
/freebsd/contrib/ntp/parseutil/
H A Ddcfd.c208 long year; member
473 clock_time->year = ext_bf(buffer, DCF_Y10); in convert_rawdcf()
474 clock_time->year = TIMES10(clock_time->year) + ext_bf(buffer, DCF_Y1); in convert_rawdcf()
779 if ( clock_time->year < YEAR_PIVOT ) /* in case of Y2KFixes [ */ in dcf_to_unixtime()
780 clock_time->year += 100; /* *year%100, make tm_year */ in dcf_to_unixtime()
782 if ( clock_time->year < YEAR_BREAK ) /* (failsafe if) */ in dcf_to_unixtime()
783 clock_time->year += 1900; /* Y2KFixes ] */ in dcf_to_unixtime()
788 if (clock_time->year < (YEAR_PIVOT + 1900) ) /* Y2KFixes */ in dcf_to_unixtime()
800 t = julian0( clock_time->year ) - julian0( 1970 ); in dcf_to_unixtime()
810 if (clock_time->month < 3 && days_per_year(clock_time->year) == 366) in dcf_to_unixtime()
[all …]
/freebsd/contrib/ntp/
H A DNOTES.y2kfixes51 calculations that did not support year 2000 as a leap year
54 not traditional Y2K errors, would break in the year 2000.
82 Has logic I believe will fail starting in year 2100 or so.
92 NOTE: Author (falsely) stated Y2K is NOT a leap year when it
96 for year so year 2000 will revert to "00".
100 Some very strange logic in manipulating year values:
101 1122 instance->pp->year = buf[6]*256+buf[7];
105 The entire protocol is binary, the year is a 16 bit quantity
/freebsd/contrib/tzdata/
H A Dantarctica7 # 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
[all...]
H A Dleapseconds.awk201 quadcentury, century, quadyear, year, month, day)
230 year = int(day / ss_year_days)
231 year -= year == 4
232 day -= year * ss_year_days
246 year++
248 ss_year = 1600 + quadcentury * 400 + century * 100 + quadyear * 4 + year
/freebsd/contrib/ntp/util/
H A Dtg.c263 int minute, hour, day, year; in main() local
270 year = 0; in main()
311 sscanf(optarg, "%2d%3d%2d%2d", &year, &day, in main()
357 year = tm->tm_year % 100; in main()
376 year, day, hour, minute, second, tone); in main()
378 year / 10, day, hour, minute, year % 10); in main()
393 0, year, day, hour, minute, second); in main()
424 if (day >= (year & 0x3 ? 366 : 367)) { in main()
431 year++; in main()
435 "%01d%03d%02d%02d%01d", year / 10, in main()
[all …]
/freebsd/share/doc/papers/
H A Dbsdreferences.bib11 year = {2014}
22 year = {2003},
42 year = {2008},
59 year = {2004},
74 year = {2011},
93 year = {2008},
114 year = {2015},
134 year = {2015},
151 year = {2015},
172 year = {2000},
[all …]
/freebsd/contrib/tzcode/
H A Dasctime.c31 ** is undefined when the year is less than 1000 or greater than 9999.
35 ** For years that are more than four digits we put extra spaces before the year
37 ** a digit within a year and truncating the year (operating on the assumption
89 char year[INT_STRLEN_MAXIMUM(int) + 2]; in asctime_r()
103 ** Use strftime's %Y to generate the year, to avoid overflow problems in asctime_r()
108 strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
113 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), in asctime_r()
117 year); in asctime()
77 char year[INT_STRLEN_MAXIMUM(int) + 2]; asctime_r() local
[all...]
/freebsd/crypto/heimdal/doc/
H A Dmdate-sh67 *:*) set `date`; eval year=\$$#
86 year=`expr $year - 1`
88 *) year=$3;;
92 echo $day $month $year
/freebsd/lib/libc/stdtime/
H A Dstrptime.c65 * Gauss's algorithm for the day of the week of the first day of any year
69 first_wday_of(int year)
72 5 * ((year - 1) % 4) + in first_wday_of() argument
73 4 * ((year - 1) % 100) + in first_wday_of()
74 6 * ((year - 1) % 400)) % 7); in first_wday_of()
88 int century, year; in _strptime()
97 year = -1; in _strptime()
529 year = i % 100; in _strptime()
608 if (century != -1 || year != -1) { in _strptime()
609 if (year in _strptime()
89 int century, year; _strptime() local
[all...]

12345678910>>...13