• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tcl/tcl/generic/

Lines Matching defs:year

89     "year"
116 int year; /* Year of the era */
117 int dayOfYear; /* Day of the year (1 January == 1) */
120 int iso8601Year; /* ISO8601 week-based year */
490 Tcl_NewIntObj(fields.year));
514 * Tcl command that converts a time from era-year-month-day to a Julian
518 * dict - Dictionary that contains 'era', 'year', 'month' and
561 || TclGetIntFromObj(interp, fieldPtr, &(fields.year)) != TCL_OK
868 timeVal.tm_year = fields->year - 1900;
1034 * Use 'localtime' to determine local year, month, day, time of day.
1059 fields->year = timeVal->tm_year + 1900;
1169 * Given a date with Julian Calendar Day, compute the year, week, and day
1192 * Find the given date, minus three days, plus one year. That date's
1193 * iso8601 year is an upper bound on the ISO8601 year of the given date.
1199 temp.iso8601Year = temp.year - 1;
1201 temp.iso8601Year = temp.year + 1;
1208 * temp.julianDay is now the start of an ISO8601 year, either the one
1210 * move one year earlier
1237 * Given a Julian Day Number, extracts the year and day of the year and
1245 * Stores 'era', 'gregorian', 'year', and 'dayOfYear'.
1257 int year;
1266 year = 1;
1269 * n = Number of 400-year cycles since 1 January, 1 CE in the
1280 year += 400 * n;
1283 * n = number of centuries since the start of (year);
1291 * 31 December in the last year of a 400-year cycle.
1297 year += 100 * n;
1305 year = 1;
1311 * n = number of 4-year cycles; days = remaining days.
1320 year += 4 * n;
1330 * 31 December of a leap year.
1336 year += n;
1339 * store era/year/day back into fields.
1342 if (year <= 0) {
1344 fields->year = 1 - year;
1347 fields->year = year;
1358 * Given a date as year and day-of-year, find month and day.
1390 * Given a TclDateFields structure containing era, ISO8601 year, ISO8601
1409 * given year */
1412 * Find January 4 in the ISO8601 year, which will always be in week 1.
1417 firstWeek.year = fields->iso8601Year;
1442 * Given era, year, month, and dayOfMonth (in TclDateFields), and the
1459 int year; int ym1;
1465 year = 1 - fields->year;
1467 year = fields->year;
1482 year += q;
1484 ym1 = year - 1;
1487 * Adjust the year after reducing the month.
1491 if (year < 1) {
1493 fields->year = 1-year;
1496 fields->year = year;
1532 + daysInPriorMonths[year%4 == 0][month - 1]
1544 * Tests whether a given year is a leap year, in either Julian or
1548 * Returns 1 for a leap year, 0 otherwise.
1557 int year;
1560 year = 1 - fields->year;
1562 year = fields->year;
1564 if (year%4 != 0) {
1568 } else if (year%400 == 0) {
1570 } else if (year%100 == 0) {