Lines Matching full:week
17 * week-based date determination. Removed quetionable
519 fprintf(stderr, "%s:%d: [WOY/WOM] gregorian week shift of %d += %d\n",
522 jd += weekShift; // shift by weeks for week based fields.
731 // * Compute the day of week, relative to the first day of week, from
747 // * Compute the day of week, relative to the first day of week,
764 // // Compute DOY from day of week plus week of year
766 // // Find the day of the week for the first of this year. This
768 // // the week. Add 1 to get first day of year.
776 // // Adjust for the week number.
861 week. Also, rolling the week of the year can have seemingly
862 // strange effects simply because the year of the week of year
864 // date Dec 28, 1997 is the first day of week 1 of 1998 (if
865 // weeks start on Sunday and the minimal days in first week is
868 // Get the ISO year, which matches the week of year. This
884 // Determine the last week of the ISO year.
888 // week 1 of the next year, we drop the last week by
939 // to a different day of the week. For example:
945 // When rolling from the 6th or 7th back one week, we go to the
946 // 1st (assuming that the first partial week counts). The same
950 // the first partial week actually counts or not, based on the
951 // minimal first days in the week. And we have to use the
952 // correct first day of the week to delineate the week
956 // the month. Then we discard the first partial week if it
958 // phantom days, so that the first partial week and the last
959 // partial week are full weeks. We then have a nice square
971 // Normalize the DAY_OF_WEEK so that 0 is the first day of the week
980 // Find the day of the week (normalized for locale) for the first
986 // Get the first day of the first full week of the month,
987 // including phantom days, if any. Figure out if the first week
989 // not, advance to the first real full week (skip the partial week).
992 start = 8 - fdm; // Skip the first partial week
996 // Get the day of the week (normalized for locale) for the last
1005 // to fill out the last week. This day has a normalized DOW of 0.