Lines Matching defs:month
3506 int month, mday, year, jday;
3518 /* offset to bias by March (month 4) 1st between month/mday & year finding */
3526 * With a suitable offset for numeric value of the month, one can find
3530 * the 13th and 14th month of the previous year. After that transformation,
3531 * we need the month index we use to be high by 1 from 'normal human' usage,
3532 * so the month index values we use run from 4 through 15.
3538 * the days we derive from our month index, and adding in the day of the
3539 * month. The value used here is not adjusted for the actual origin which
3542 * normalised values for the year, month, day-of-month, and day-of-year.
3558 * figuring in March 1st), find the month index (integer division by 30.6),
3559 * and the remainder is the day-of-month. We then have to convert back to
3584 month = ptm->tm_mon;
3586 /* allow given yday with no month & mday to dominate the result */
3587 if (ptm->tm_yday >= 0 && mday <= 0 && month <= 0) {
3588 month = 0;
3595 if (month >= 2)
3596 month+=2;
3598 month+=14, year--;
3600 yearday += month*MONTH_TO_DAYS + mday + jday;
3659 month = 1;
3664 month = yearday*DAYS_TO_MONTH;
3665 yearday -= month*MONTH_TO_DAYS;
3667 if (month > 13) {
3668 month-=14;
3672 month-=2;
3678 ptm->tm_mon = month;
3682 ptm->tm_mon = month - 1;