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

12345678

/freebsd-11-stable/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-11-stable/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-11-stable/usr.bin/calendar/
H A Dostern.c38 /* return year day for Easter */
48 easter(int year) /* 0 ... abcd, NOT since 1900 */ argument
57 G = year % 19;
58 C = year / 100;
61 J = (year + year / 4 + I + 2 - C + C / 4) % 7;
65 if (isleap(year))
H A Dpaskha.c43 j2g(int year) argument
45 return (year < 1500) ?
47 10 + (year/100 - 16) - ((year/100 - 16) / 4);
50 /* return year day for Orthodox Easter using Gauss formula */
54 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 strcpy(year, p1);
202 *iyear = (int)strtol(year, NULL, 10);
344 char *year, int iyear)
357 if (year[0] != '\0')
358 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
341 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
370 int year; member in struct:yearinfo
386 wdayom(int day, int offset, int month, int year) argument
441 int year, remindex; local
1049 floattoday(int year, double f) argument
1075 int year; local
[all...]
H A Dcalendar.h97 * (number of weeks per year), if you
124 int year; member in struct:event
187 void addtodate(struct event *e, int year, int month, int day);
191 void pom(int year, double UTCoffset, int *fms, int *nms);
192 void fpom(int year, double utcoffset, double *ffms, double *fnms);
195 void equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays);
196 void fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays);
197 int calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths);
H A Dsunpos.c202 equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays) argument
206 fequinoxsolstice(year, UTCoffset, fe, fs);
214 fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays) argument
224 cumdays = cumdaytab[isleap(year)];
233 sunpos(year, 3, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft);
234 sunpos(year, 3, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0,
245 sunpos(year, 3, d, UTCoffset,
272 sunpos(year, 9, d, UTCoffset, 0, 0, 0, 0.0, 0.0, &L, &decleft);
273 sunpos(year, 9, d + 1, UTCoffset, 0, 0, 0, 0.0, 0.0,
284 sunpos(year,
369 calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths) argument
[all...]
/freebsd-11-stable/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-11-stable/sys/kern/
H A Dsubr_clock.c102 * some recent year avoids lots of unnecessary loop iterations in conversion.
119 * ( ((year % 4) == 0 &&
120 * (year % 100) != 0) ||
121 * ((year % 400) == 0) )
125 leapyear(int year) argument
129 if ((year & 3) == 0) {
131 if ((year % 100) == 0) {
133 if ((year % 400) == 0)
143 int i, year, days; local
152 * Many realtime clocks store the year a
252 int i, year, days; local
[all...]
/freebsd-11-stable/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
154 # ss_year - Gregorian calendar year
155 # ss_month - month of the year (1-January to 12-December)
179 # Counts of days in a Gregorian year, quad-year, century, and quad-century.
192 quadcentury, century, quadyear, year, mont
[all...]
/freebsd-11-stable/contrib/tzcode/stdtime/
H A Dasctime.c42 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year,
51 ** For years that are more than four digits we put extra spaces before the year
53 ** a digit within a year and truncating the year (operating on the assumption
95 char year[INT_STRLEN_MAXIMUM(int) + 2]; local
109 ** Use strftime's %Y to generate the year, to avoid overflow problems
114 (void) strftime(year, sizeof year, "%Y", timeptr);
119 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B),
123 year); local
[all...]
/freebsd-11-stable/tools/tools/netrate/tcpp/
H A Drunit.pl13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
15 $year += 1900;
16 $date = sprintf("%04d%02d%02d", $year, $mon, $mday);
/freebsd-11-stable/usr.bin/chpass/
H A Dutil.c88 int day, month, year; local
118 year = atoi(t);
122 if (year < 69)
123 year += 2000;
124 else if (year < 100)
125 year += 1900;
126 if (year < 1969)
128 lt->tm_year = year - 1900;
/freebsd-11-stable/usr.bin/at/
H A Dparsetime.c102 { "year", YEARS,0 }, /* year ... */
427 * assign_date() assigns a date, wrapping to next year if needed
430 assign_date(struct tm *tm, long mday, long mon, long year) argument
434 * Convert year into tm_year format (year - 1900).
435 * We may be given the year in 2 digit, 4 digit, or tm_year format.
437 if (year != -1) {
438 if (year >= 1900)
439 year
481 long year= (-1); local
[all...]
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_datum.h20 unsigned short year; member in struct:vmedate
/freebsd-11-stable/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-11-stable/sys/dev/mc146818/
H A Dmc146818.c109 int timeout, cent, year; local
140 year = FROMREG((*sc->sc_mcread)(dev, MC_YEAR));
141 year += sc->sc_year0;
144 year += cent * 100;
145 } else if (year < POSIX_BASE_YEAR)
146 year += 100;
149 ct.year = year;
195 int cent, year; local
220 year
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/sys/dev/mk48txx/
H A Dmk48txx.c162 int year; local
192 year = FROMBCD(FROMREG(MK48TXX_IYEAR, MK48TXX_YEAR_MASK));
193 year += sc->sc_year0;
195 year += (FROMREG(MK48TXX_IWDAY, MK48TXX_WDAY_CB) >>
197 else if (year < POSIX_BASE_YEAR)
198 year += 100;
202 ct.year = year;
224 int cent, year; local
254 year
[all...]
/freebsd-11-stable/contrib/ntp/util/
H A Dtg.c31 * string yydddhhmmss, where yy is the year of century, ddd the day of
32 * year, hh the hour of day and mm the minute of hour. For instance,
133 {COEF, 1}, /* 4 1 year units */
180 {COEF, 1}, /* 51 10 year tens */
263 int minute, hour, day, year; local
270 year = 0;
311 sscanf(optarg, "%2d%3d%2d%2d", &year, &day,
357 year = tm->tm_year % 100;
375 printf("year %d day %d time %02d:%02d:%02d tone %d\n",
376 year, da
[all...]
/freebsd-11-stable/contrib/file/src/
H A Dcdf_time.c49 * Return the number of days between jan 01 1601 and jan 01 of year.
52 cdf_getdays(int year) argument
57 for (y = CDF_BASE_YEAR; y < year; y++)
67 cdf_getday(int year, int days) argument
72 int sub = mdays[m] + (m == 1 && isleap(year));
84 cdf_getmonth(int year, int days) argument
90 if (m == 1 && isleap(year))
/freebsd-11-stable/sys/arm/nvidia/
H A Das3722_rtc.c64 ct.year = bcd2bin(buf[5] & 0x7F) + AS3722_RTC_START_YEAR;
81 if (ct.year < AS3722_RTC_START_YEAR)
89 buf[5] = bin2bcd(ct.year - AS3722_RTC_START_YEAR);
/freebsd-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_misc.c50 host_wellness_time->century = (uint8_t)bin2bcd(ct.year / 100);
51 host_wellness_time->year = (uint8_t)bin2bcd(ct.year % 100);
/freebsd-11-stable/contrib/llvm-project/lld/docs/
H A Dconf.py44 copyright = u'2011-%d, LLVM Project' % date.today().year

Completed in 117 milliseconds

12345678