Home | History | Annotate | Download | only in libexslt

Lines Matching refs:Day

89     unsigned int	day	:5;	/* 1 <=  day    <= 31   */
102 long day;
142 #define VALID_DAY(day) ((day >= 1) && (day <= 31))
160 (dt->day <= daysInMonthLeap[dt->mon - 1]) : \
161 (dt->day <= daysInMonth[dt->mon - 1]))
186 #define DAY_IN_YEAR(day, month, year) \
189 dayInYearByMonth[month - 1]) + day)
428 PARSE_2_DIGITS(dt->day, cur, VALID_DAY, ret);
436 "Parsed day %02i\n", dt->day);
451 FORMAT_2_DIGITS(dt->day, cur)
770 ret->value.date.day = localTm.tm_mday;
785 ret->value.date.tzo = (((ret->value.date.day * 1440) +
1060 dur->value.dur.day = -dur->value.dur.day;
1114 if ((dt->sec == 0.0) && (dt->day == 0) && (dt->mon == 0))
1118 days = (double)dt->day;
1364 ret += (double)dt->value.dur.day * SECS_PER_DAY;
1367 ret += (double)dt->value.date.day * SECS_PER_DAY;
1398 dt->value.date.day = 0;
1413 * @yday: year day (1-366)
1416 * Determine the day-in-week from @yday and @yr. 0001-01-01 was
1419 * the day-in-year and mod by 7. This is a function because negative
1422 * Returns day in week (Sunday = 0).
1485 if (d->day == 0)
1486 d->day = 1;
1529 (d->day > MAX_DAYINMONTH(r->year, r->mon)))
1531 else if (d->day < 1)
1534 tempdays = d->day;
1536 tempdays += u->day + carry;
1571 r->day = tempdays;
1580 if ((r->mon != 1) && (r->day != 1))
1674 ret->value.dur.day = _exsltDateCastYMToDays(y) -
1676 ret->value.dur.day += y->value.date.day - x->value.date.day;
1678 if (ret->value.dur.day > 0.0 && ret->value.dur.sec < 0.0) {
1679 ret->value.dur.day -= 1;
1681 } else if (ret->value.dur.day < 0.0 && ret->value.dur.sec > 0.0) {
1682 ret->value.dur.day += 1;
1728 ret->value.dur.day = x->value.dur.day + y->value.dur.day + carry;
1734 if ((((ret->value.dur.day > 0) || (ret->value.dur.sec > 0)) &&
1736 (((ret->value.dur.day < 0) || (ret->value.dur.sec < 0)) &&
2164 diy = DAY_IN_YEAR(dt->value.date.day, dt->value.date.mon,
2168 * Determine day-in-week (0=Sun, 1=Mon, etc.) then adjust so Monday
2169 * is the first day-in-week
2199 * argument. For the purposes of numbering, the first day of the month
2235 * Determine day-in-week (0=Sun, 1=Mon, etc.) then adjust so Monday
2236 * is the first day-in-week
2240 ret = ((dt->value.date.day + fdiw - 1) / 7) + 1;
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
2287 ret = DAY_IN_YEAR(dt->value.date.day, dt->value.date.mon,
2299 * Implements the EXSLT - Dates and Times day-in-month() function:
2300 * number date:day-in-month (string?)
2301 * Returns the day of a date as a number. If no argument is given,
2338 ret = (double) dt->value.date.day;
2348 * Implements the EXSLT - Dates and Times day-of-week-in-month() function:
2349 * number date:day-of-week-in-month (string?)
2350 * Returns the day-of-the-week in a month of a date as a number
2385 ret = ((dt->value.date.day -1) / 7) + 1;
2396 * Implements the EXSLT - Dates and Times day-in-week() function:
2397 * number date:day-in-week (string?)
2398 * Returns the day of the week given in a date as a number. If no
2434 diy = DAY_IN_YEAR(dt->value.date.day, dt->value.date.mon,
2448 * Implements the EXSLT - Dates and Time day-name() function
2449 * string date:day-name (string?)
2450 * Returns the full name of the day of the week of a date. If no
2461 * The result is an English day name: one of 'Sunday', 'Monday',
2477 int day;
2478 day = (int) exsltDateDayInWeek(dateTime);
2479 if((day < 1) || (day > 7))
2480 day = 0;
2481 return dayNames[day];
2488 * Implements the EXSLT - Dates and Time day-abbreviation() function
2489 * string date:day-abbreviation (string?)
2490 * Returns the abbreviation of the day of the week of a date. If no
2501 * The result is a three-letter English day abbreviation: one of
2517 int day;
2518 day = (int) exsltDateDayInWeek(dateTime);
2519 if((day < 1) || (day > 7))
2520 day = 0;
2521 return dayAbbreviations[day];
2528 * Implements the EXSLT - Dates and Times day-in-month() function:
2529 * number date:day-in-month (string?)
2530 * Returns the hour of the day as a number. If no argument is given,
2574 * Implements the EXSLT - Dates and Times day-in-month() function:
2575 * number date:day-in-month (string?)
2621 * number date:day-in-month (string?)
2940 y->value.date.day = 1;
3397 X_IN_Y(Day,Year)
3406 X_IN_Y(Day,Month)
3424 X_IN_Y(Day,Week)
3508 X_IN_Y(Hour,Day)
3731 xsltRegisterExtModuleFunction ((const xmlChar *) "day-abbreviation",
3734 xsltRegisterExtModuleFunction ((const xmlChar *) "day-in-month",
3737 xsltRegisterExtModuleFunction ((const xmlChar *) "day-in-week",
3740 xsltRegisterExtModuleFunction ((const xmlChar *) "day-in-year",
3743 xsltRegisterExtModuleFunction ((const xmlChar *) "day-name",
3746 xsltRegisterExtModuleFunction ((const xmlChar *) "day-of-week-in-month",
3755 xsltRegisterExtModuleFunction ((const xmlChar *) "hour-in-day",
3828 (const xmlChar *) "day-abbreviation",
3832 (const xmlChar *) "day-in-month",
3836 (const xmlChar *) "day-in-week",
3840 (const xmlChar *) "day-in-year",
3844 (const xmlChar *) "day-name",
3848 (const xmlChar *) "day-of-week-in-month",
3860 (const xmlChar *) "hour-in-day",