Searched refs:year (Results 1 - 25 of 208) sorted by relevance

123456789

/freebsd-current/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-current/contrib/ntp/ntpd/
H A Dcheck_y2k.c110 Days ( int Year ) /* return number of days since year "0" */
126 static int year0 = 1900; /* sarting year for NTP time */
127 static int yearend; /* ending year we test for NTP time.
129 **year in which NTP time overflows.
138 #define Error(year) if ( (year)>=2036 && LocalTime.tm_year < 110 ) \
146 int year; local
155 year = ( sizeof( u_long ) > 4 ) /* save max span using year as temp */
162 * fail ONLY beyond year 203
327 int year; member in struct:ParseTime
[all...]
/freebsd-current/contrib/llvm-project/libcxx/include/__chrono/
H A Dyear.h31 class year { class in namespace:chrono
36 year() = default;
37 _LIBCPP_HIDE_FROM_ABI explicit inline constexpr year(int __val) noexcept : __y_(static_cast<short>(__val)) {}
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 {
52 _LIBCPP_HIDE_FROM_ABI inline constexpr year operator--(int) noexcept {
53 year __tmp = *this;
57 _LIBCPP_HIDE_FROM_ABI constexpr year
[all...]
H A Dliterals.h14 #include <__chrono/year.h>
31 _LIBCPP_HIDE_FROM_ABI constexpr chrono::year operator""y(unsigned long long __y) noexcept {
32 return chrono::year(static_cast<int>(__y));
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
37 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; }
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...]
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
55 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; }
83 return year_month_weekday{__ymd.year(), __ymd.month(), __wd[(static_cast<unsigned>(__ymd.day()) - 1) / 7 + 1]};
93 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() &&
99 return year_month_weekday{__lhs.year(), __lhs.month(), __rhs};
103 operator/(const year
[all...]
H A Dyear_month_day.h20 #include <__chrono/year.h>
40 chrono::year __y_;
47 const chrono::year& __yval, const chrono::month& __mval, const chrono::day& __dval) noexcept
60 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; }
87 return year_month_day{chrono::year{__yr + (__mth <= 2)}, chrono::month{__mth}, chrono::day{__dy}};
108 return __lhs.year() == __rhs.year() && __lhs.month() == __rhs.month() && __lhs.day() == __rhs.day();
113 if (auto __c = __lhs.year() <=> __rhs.year(); __
[all...]
/freebsd-current/usr.bin/calendar/
H A Dostern.c36 /* return year day for Easter */
46 easter(int year) /* 0 ... abcd, NOT since 1900 */ argument
55 G = year % 19;
56 C = year / 100;
59 J = (year + year / 4 + I + 2 - C + C / 4) % 7;
63 if (isleap(year))
H A Dpaskha.c41 j2g(int year) argument
43 return (year < 1500) ?
45 10 + (year/100 - 16) - ((year/100 - 16) / 4);
48 /* return year day for Orthodox Easter using Gauss formula */
52 paskha(int R) /*year*/
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)
103 *year = '\0';
200 /* We have a year in the string. Now this is getting tricky */
201 strlcpy(year, p1, SLEN);
202 *iyear = (int)strtol(year, NULL, 10);
341 char *year, int iyear)
354 if (year[0] != '\0')
355 printf("year
90 determinestyle(char *date, int *flags, char *month, int *imonth, char *dayofmonth, int *idayofmonth, char *dayofweek, int *idayofweek, char *modifieroffset, char *modifierindex, char *specialday, char *year, int *iyear) argument
338 debug_determinestyle(int dateonly, char *date, int flags, char *month, int imonth, char *dayofmonth, int idayofmonth, char *dayofweek, int idayofweek, char *modifieroffset, char *modifierindex, char *specialday, char *year, int iyear) argument
367 int year; member in struct:yearinfo
383 wdayom(int day, int offset, int month, int year) argument
438 int year, remindex; local
1046 floattoday(int year, double f) argument
1072 int year; local
[all...]
H A Dcalendar.h100 * (number of weeks per year), if you
127 int year; member in struct:event
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);
H A Dsunpos.c200 equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays) argument
204 fequinoxsolstice(year, UTCoffset, fe, fs);
212 fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays) argument
222 cumdays = cumdaytab[isleap(year)];
231 sunpos(year, 3, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft);
232 sunpos(year, 3, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0,
243 sunpos(year, 3, d, UTCoffset,
270 sunpos(year, 9, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft);
271 sunpos(year, 9, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0,
282 sunpos(year,
367 calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths) argument
[all...]
/freebsd-current/contrib/bc/tests/dc/scripts/
H A Deaster.sh43 printf 'usage: %s dc_exec year [options...]\n' "$script"
58 year="$1"
61 echo $year '
/freebsd-current/contrib/ntp/libntp/
H A Duglydate.c24 int year; local
35 year = 0;
41 year = tm->tm_year;
42 while (year >= 100)
43 year -= 100;
46 "%17s %02d:%03d:%02d:%02d:%02d.%03ld", timep, year,
/freebsd-current/sys/kern/
H A Dsubr_clock.c96 * some recent year avoids lots of unnecessary loop iterations in conversion.
113 * ( ((year % 4) == 0 &&
114 * (year % 100) != 0) ||
115 * ((year % 400) == 0) )
119 leapyear(int year) argument
123 if ((year & 3) == 0) {
125 if ((year % 100) == 0) {
127 if ((year % 400) == 0)
137 int i, year, days; local
146 * Many realtime clocks store the year a
246 time_t i, year, days; local
[all...]
/freebsd-current/contrib/tzcode/
H A Dasctime.c30 ** The ISO C and POSIX standards prohibit padding the year,
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
77 char year[INT_STRLEN_MAXIMUM(int) + 2]; local
91 ** Use strftime's %Y to generate the year, to avoid overflow problems
96 strftime(year, sizeof year, "%Y", timeptr);
101 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B),
105 year); local
[all...]
/freebsd-current/tools/tools/netrate/tcpp/
H A Drunit.pl12 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
14 $year += 1900;
15 $date = sprintf("%04d%02d%02d", $year, $mon, $mday);
/freebsd-current/usr.bin/chpass/
H A Dutil.c83 int day, month, year; local
113 year = atoi(t);
117 if (year < 69)
118 year += 2000;
119 else if (year < 100)
120 year += 1900;
121 if (year < 1969)
123 lt->tm_year = year - 1900;
/freebsd-current/usr.bin/at/
H A Dparsetime.c100 { "year", YEARS,0 }, /* year ... */
425 * assign_date() assigns a date, wrapping to next year if needed
428 assign_date(struct tm *tm, long mday, long mon, long year) argument
432 * Convert year into tm_year format (year - 1900).
433 * We may be given the year in 2 digit, 4 digit, or tm_year format.
435 if (year != -1) {
436 if (year >= 1900)
437 year
479 long year= (-1); local
[all...]
/freebsd-current/contrib/ntp/include/
H A Dntp_datum.h20 unsigned short year; member in struct:vmedate
/freebsd-current/contrib/ntp/scripts/monitoring/
H A Dtimelocal.pl4 ;# $time = timelocal($sec,$min,$hours,$mday,$mon,$year,$junk,$junk,$isdst);
5 ;# $time = timegm($sec,$min,$hours,$mday,$mon,$year);
61 $year = $_[5];
65 $year += $YearFix if $year < $epoch[5];
66 while ($diff = $year - $g[5]) {
/freebsd-current/contrib/tzdata/
H A Dleapseconds.awk7 # timestamps this program works only to the year 2216, which is the
8 # year 1900 plus 10**10 seconds. However, in practice
10 # and so support exact integers through 2**53. By the year 2216,
12 # timestamps this program should be good until the year 285,428,681
13 # (the year 1900 plus 2**53 seconds). By then leap seconds will be
163 # ss_year - Gregorian calendar year
164 # ss_month - month of the year (1-January to 12-December)
188 # Counts of days in a Gregorian year, quad-year, century, and quad-century.
201 quadcentury, century, quadyear, year, mont
[all...]
/freebsd-current/crypto/heimdal/doc/
H A Dmdate-sh41 # Find the month. Next argument is day, followed by the year or time.
65 # the time of day or the year.
67 *:*) set `date`; eval year=\$$#
82 # For the first six month of the year the time notation can also
83 # be used for files modified in the last year.
86 year=`expr $year - 1`
88 *) year=$3;;
92 echo $day $month $year
/freebsd-current/contrib/ntp/scripts/build/
H A DupdateBEDate26 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
28 $year += 1900;
39 printf { $OFILE } "%s-%s-%s %02d:%02d", $mday,$m_abbr[$mon],$year,$hour,$min;
/freebsd-current/contrib/llvm-project/lld/docs/
H A Dconf.py44 copyright = "2011-%d, LLVM Project" % date.today().year

Completed in 321 milliseconds

123456789