Lines Matching refs:month
66 // Compute number of days given a year, month, date.
67 // Note that month and date can lie outside the normal range.
72 function MakeDay(year, month, date) {
73 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return NAN;
77 month = TO_INTEGER_MAP_MINUS_ZERO(month);
81 month < kMinMonth || month > kMaxMonth) {
85 // Now we rely on year and month being SMIs.
86 return %DateMakeDay(year | 0, month | 0) + date - 1;
121 function DateConstructor(year, month, date, hours, minutes, seconds, ms) {
165 month = ToNumber(month);
174 var day = MakeDay(year, month, date);
268 function DateUTC(year, month, date, hours, minutes, seconds, ms) {
270 month = ToNumber(month);
280 var day = MakeDay(year, month, date);
572 function DateSetMonth(month, date) {
574 month = ToNumber(month);
576 var day = MakeDay(LOCAL_YEAR(this), month, date);
582 function DateSetUTCMonth(month, date) {
584 month = ToNumber(month);
586 var day = MakeDay(UTC_YEAR(this), month, date);
592 function DateSetFullYear(year, month, date) {
598 month = argc < 2 ? 0 : ToNumber(month);
602 month = argc < 2 ? LOCAL_MONTH(this) : ToNumber(month);
606 var day = MakeDay(year, month, date);
612 function DateSetUTCFullYear(year, month, date) {
618 month = argc < 2 ? 0 : ToNumber(month);
622 month = argc < 2 ? UTC_MONTH(this) : ToNumber(month);
626 var day = MakeDay(year, month, date);
658 var month, date, time;
660 month = 0;
664 month = LOCAL_MONTH(this);
668 var day = MakeDay(year, month, date);