/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | check_y2k.c | 110 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-9.3-release/usr.bin/calendar/ |
H A D | ostern.c | 36 /* 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 D | paskha.c | 41 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 D | parsedata.c | 48 static char *floattoday(int year, double f); 90 char *modifierindex, char *specialday, char *year, int *iyear) 100 *year = '\0'; 197 /* We have a year in the string. Now this is getting tricky */ 198 strcpy(year, p1); 199 *iyear = (int)strtol(year, NULL, 10); 209 printf("year: %s\n", year); 345 char *year, int iyear) 358 if (year[ 87 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 342 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 371 int year; member in struct:yearinfo 398 int year, remindex; local 998 floattoday(int year, double f) argument 1024 int year; local [all...] |
H A D | calendar.h | 97 * (number of weeks per year), if you 124 int year; member in struct:event 186 void addtodate(struct event *e, int year, int month, int day); 190 void pom(int year, double UTCoffset, int *fms, int *nms); 191 void fpom(int year, double utcoffset, double *ffms, double *fnms); 194 void equinoxsolstice(int year, double UTCoffset, int *equinoxdays, int *solsticedays); 195 void fequinoxsolstice(int year, double UTCoffset, double *equinoxdays, double *solsticedays); 196 int calculatesunlongitude30(int year, int degreeGMToffset, int *ichinesemonths);
|
H A D | sunpos.c | 200 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-9.3-release/sys/mips/include/ |
H A D | clockvar.h | 46 int year; /* year - 1900 */ member in struct:tod_time
|
/freebsd-9.3-release/contrib/ntp/libntp/ |
H A D | uglydate.c | 24 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-9.3-release/contrib/tzdata/ |
H A D | leapseconds.awk | 54 year = $6 62 year--; 69 printf "Leap\t%s\t%s\t%s\t%s\tS\n", year, month, day, sign
|
/freebsd-9.3-release/sys/kern/ |
H A D | subr_clock.c | 104 * ( ((year % 4) == 0 && 105 * (year % 100) != 0) || 106 * ((year % 400) == 0) ) 110 leapyear(int year) argument 114 if ((year & 3) == 0) { 116 if ((year % 100) == 0) { 118 if ((year % 400) == 0) 129 ct->year, ct->mon, ct->day, 137 int i, year, days; local 139 year 183 int i, year, days; local [all...] |
/freebsd-9.3-release/contrib/tzcode/stdtime/ |
H A D | asctime.c | 42 ** 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-9.3-release/tools/tools/netrate/tcpp/ |
H A D | runit.pl | 13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); 15 $year += 1900; 16 $date = sprintf("%04d%02d%02d", $year, $mon, $mday);
|
/freebsd-9.3-release/usr.bin/chpass/ |
H A D | util.c | 88 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-9.3-release/usr.bin/at/ |
H A D | parsetime.c | 99 { "year", YEARS,0 }, /* year ... */ 397 * assign_date() assigns a date, wrapping to next year if needed 400 assign_date(struct tm *tm, long mday, long mon, long year) argument 404 * Convert year into tm_year format (year - 1900). 405 * We may be given the year in 2 digit, 4 digit, or tm_year format. 407 if (year != -1) { 408 if (year >= 1900) 409 year 451 long year= (-1); local [all...] |
/freebsd-9.3-release/sys/dev/mc146818/ |
H A D | mc146818.c | 109 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-9.3-release/contrib/ntp/scripts/monitoring/ |
H A D | timelocal.pl | 4 ;# $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-9.3-release/contrib/ntp/include/ |
H A D | ntp_datum.h | 20 unsigned short year; member in struct:vmedate
|
/freebsd-9.3-release/contrib/cvs/ |
H A D | mdate-sh | 41 # 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-9.3-release/crypto/heimdal/doc/ |
H A D | mdate-sh | 41 # 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-9.3-release/contrib/file/src/ |
H A D | cdf_time.c | 49 * 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-9.3-release/contrib/ntp/scripts/build/ |
H A D | updateBEDate | 26 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-9.3-release/contrib/bind9/lib/dns/ |
H A D | time.c | 115 * is defined, but even the current code is good until the year 135 int year, month, day, hour, minute, second; local 157 &year, &month, &day, &hour, &minute, &second) != 6) 160 RANGE(0, 9999, year); 163 ((month == 2 && is_leap(year)) ? 1 : 0), day); 175 if (is_leap(year) && month > 2) 177 if (year < 1970) { 178 for (i = 1969; i >= year; i--) { 183 for (i = 1970; i < year; i++) {
|
/freebsd-9.3-release/sys/dev/mk48txx/ |
H A D | mk48txx.c | 162 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-9.3-release/contrib/ntp/tests/libntp/ |
H A D | calendar.c | 10 static int leapdays(int year); 14 int leapdays(int year); 68 leapdays(int year) argument 70 if (year % 400 == 0) 72 if (year % 100 == 0) 74 if (year % 4 == 0) 85 cal->year, (u_int)cal->month, (u_int)cal->monthday, 98 iso->year, (u_int)iso->week, (u_int)iso->weekday, 109 if (expected->year == actual->year [all...] |
/freebsd-9.3-release/contrib/cvs/doc/ |
H A D | mdate-sh | 132 # $4 = year or time 140 # $3 = year or time 165 # the time of day or the year. 167 *:*) set `date`; eval year=\$$# 182 # For the first six month of the year the time notation can also 183 # be used for files modified in the last year. 186 year=`expr $year - 1` 188 *) year=$3;; 192 echo $day $month $year [all...] |