Home | History | Annotate | Download | only in libexslt

Lines Matching refs:Year

87     long		year;
159 (IS_LEAP(dt->year) ? \
164 (VALID_YEAR(dt->year) && VALID_MONTH(dt->mon) && VALID_MDAY(dt))
186 #define DAY_IN_YEAR(day, month, year) \
187 ((IS_LEAP(year) ? \
198 * xs:gYear. It is supposed that @dt->year is big enough to contain
199 * the year.
221 dt->year = dt->year * 10 + (*cur - '0');
226 /* year must be at least 4 digits (CCYY); over 4
232 dt->year = - dt->year;
234 if (!VALID_YEAR(dt->year))
241 "Parsed year %04i\n", dt->year);
249 * @yr: the year to format
261 long year = (yr < 0) ? - yr : yr; \
264 while (year > 0) { \
265 *tmp = '0' + (xmlChar)(year % 10); \
266 year /= 10; \
462 FORMAT_GYEAR(dt->year, cur); \
766 /* get real year, not years since 1900 */
767 ret->value.date.year = localTm.tm_year + 1900;
1283 FORMAT_GYEAR(dt->value.date.year, cur);
1304 * Convert mon and year of @dt to total number of days. Take the
1307 * years must be handled a little differently and there is no zero year.
1316 if (dt->value.date.year < 0)
1317 ret = (dt->value.date.year * 365) +
1318 (((dt->value.date.year+1)/4)-((dt->value.date.year+1)/100)+
1319 ((dt->value.date.year+1)/400)) +
1320 year);
1322 ret = ((dt->value.date.year-1) * 365) +
1323 (((dt->value.date.year-1)/4)-((dt->value.date.year-1)/100)+
1324 ((dt->value.date.year-1)/400)) +
1325 DAY_IN_YEAR(0, dt->value.date.mon, dt->value.date.year);
1346 * Calculates the number of seconds from year zero.
1348 * Returns seconds from zero year.
1404 dt->value.date.year = 0;
1413 * @yday: year day (1-366)
1414 * @yr: year
1419 * the day-in-year and mod by 7. This is a function because negative
1420 * years must be handled a little differently and there is no zero year.
1493 /* year (may be modified later) */
1494 r->year = d->year + carry;
1495 if (r->year == 0) {
1496 if (d->year > 0)
1497 r->year--;
1499 r->year++;
1528 if ((VALID_YEAR(r->year)) && (VALID_MONTH(r->mon)) &&
1529 (d->day > MAX_DAYINMONTH(r->year, r->mon)))
1530 tempdays = MAX_DAYINMONTH(r->year, r->mon);
1541 long tyr = r->year + (long)FQUOTIENT_RANGE((int)r->mon-1, 1, 13);
1554 } else if (tempdays > (long)MAX_DAYINMONTH(r->year, r->mon)) {
1555 tempdays = tempdays - MAX_DAYINMONTH(r->year, r->mon);
1562 r->year = r->year + (long)FQUOTIENT_RANGE(temp, 1, 13);
1563 if (r->year == 0) {
1565 r->year--;
1567 r->year++;
1669 ret->value.dur.mon = ((y->value.date.year * 12) + y->value.date.mon) -
1670 ((x->value.date.year * 12) + x->value.date.mon);
1894 * Implements the EXSLT - Dates and Times year() function
1895 * number date:year (string?)
1896 * Returns the year of a date as a number. If no argument is given,
1933 ret = (double) dt->value.date.year;
1943 * Implements the EXSLT - Dates and Times leap-year() function:
1945 * Returns true if the year given in a date is a leap year. If no
1962 double year;
1964 year = exsltDateYear(dateTime);
1965 if (xmlXPathIsNaN(year))
1968 if (IS_LEAP((long)year))
1978 * Implements the EXSLT - Dates and Times month-in-year() function:
1979 * number date:month-in-year (string?)
2125 * Implements the EXSLT - Dates and Times week-in-year() function
2126 * number date:week-in-year (string?)
2127 * Returns the week of the year as a number. If no argument is given,
2130 * counting follows ISO 8601: week 1 in a year is the week containing
2131 * the first Thursday of the year, with new weeks beginning on a
2146 long diy, diw, year, ret;
2165 dt->value.date.year);
2171 diw = (_exsltDateDayInWeek(diy, dt->value.date.year) + 6) % 7;
2176 year = dt->value.date.year - 1;
2177 if(year == 0) year--;
2178 diy = DAY_IN_YEAR(31, 12, year) + diy;
2179 } else if (diy > (long)DAY_IN_YEAR(31, 12, dt->value.date.year)) {
2180 diy -= DAY_IN_YEAR(31, 12, dt->value.date.year);
2233 fdiy = DAY_IN_YEAR(1, dt->value.date.mon, dt->value.date.year);
2238 fdiw = (_exsltDateDayInWeek(fdiy, dt->value.date.year) + 6) % 7;
2251 * Implements the EXSLT - Dates and Times day-in-year() function
2252 * number date:day-in-year (string?)
2253 * Returns the day of a date in a year as a number. If no argument is
2288 dt->value.date.year);
2435 dt->value.date.year);
2437 ret = _exsltDateDayInWeek(diy, dt->value.date.year) + 1;
2938 y->value.date.year = 1970;
3296 X_IN_Y(Month,Year)
3379 X_IN_Y(Week,Year)
3397 X_IN_Y(Day,Year)
3740 xsltRegisterExtModuleFunction ((const xmlChar *) "day-in-year",
3758 xsltRegisterExtModuleFunction ((const xmlChar *) "leap-year",
3767 xsltRegisterExtModuleFunction ((const xmlChar *) "month-in-year",
3788 xsltRegisterExtModuleFunction ((const xmlChar *) "week-in-year",
3791 xsltRegisterExtModuleFunction ((const xmlChar *) "year",
3840 (const xmlChar *) "day-in-year",
3864 (const xmlChar *) "leap-year",
3876 (const xmlChar *) "month-in-year",
3904 (const xmlChar *) "week-in-year",
3908 (const xmlChar *) "year",