• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/

Lines Matching defs:month

355 // get the number of days in the given month of the given year
357 wxDateTime::wxDateTime_t GetNumOfDaysInMonth(int year, wxDateTime::Month month)
359 // the number of days in month in Julian/Gregorian calendar: the first line
367 return daysInMonth[wxDateTime::IsLeapYear(year)][month];
422 int month;
425 month = mon - 2;
429 month = mon + 10;
436 + (month * DAYS_PER_5_MONTHS + 2) / 5
498 // if year and/or month have invalid values, replace them with the current ones
500 wxDateTime::Month *month)
512 if ( *month == wxDateTime::Inv_Month )
517 *month = (wxDateTime::Month)tmNow->tm_mon;
536 // return the month if the string is a month name or Inv_Month otherwise
672 // compute the week day from day/month/year: we use the dumbest algorithm
889 wxDateTime::wxDateTime_t wxDateTime::GetNumberOfDays(wxDateTime::Month month,
893 wxCHECK_MSG( month < MONTHS_IN_YEAR, 0, _T("invalid month") );
903 return GetNumOfDaysInMonth(year, month);
914 wxString wxDateTime::GetMonthName(wxDateTime::Month month,
917 wxCHECK_MSG( month != Inv_Month, wxEmptyString, _T("invalid month") );
923 tm.tm_mon = month;
928 switch(month)
1445 Month month,
1458 ReplaceDefaultYearMonthWithCurrent(&year, &month);
1460 wxDATETIME_CHECK( (0 < day) && (day <= GetNumberOfDays(month, year)),
1475 tm.tm_mon = month;
1496 m_time = GetTruncatedJDN(day, month, year);
1554 // M = month (1-12)
1555 // D = day of month (1-31)
1571 long month = ddt & 0x1E00000;
1572 month >>= 21;
1573 month -= 1;
1574 tm.tm_mon = month;
1606 long month = tm->tm_mon;
1607 month += 1;
1608 month <<= 21;
1622 ddt = year | month | day | hour | minute | second;
1697 // this will yield day, month (in 1..12 range) and year
1715 // and finally the month and day of the month
1717 long month = temp / DAYS_PER_5_MONTHS;
1720 // month is counted from March - convert to normal
1721 if ( month < 10 )
1723 month += 3;
1728 month -= 9;
1735 wxASSERT_MSG( (0 < month) && (month <= 12), _T("invalid month") );
1741 tm.mon = (Month)(month - 1); // algorithm yields 1 for January, not 0
1770 wxDateTime& wxDateTime::SetMonth(Month month)
1775 tm.mon = month;
1850 // We suppose that when adding one month to Jan 31 we want to get Feb
1851 // 28 (or 29), i.e. adding a month to the last day of the month should
1852 // give the last day of the next month which is quite logical.
1855 // Jan 30 + 1 month be - Feb 28 too or Feb 27 (assuming non leap year)?
1935 wxDateTime& wxDateTime::SetToLastMonthDay(Month month,
1938 // take the current month/year if none specified
1941 if ( month == Inv_Month )
1942 month = GetMonth();
1944 return Set(GetNumOfDaysInMonth(year, month), month, year);
2037 Month month,
2045 // take the current month/year if none specified
2046 ReplaceDefaultYearMonthWithCurrent(&year, &month);
2054 // get the first day of the month
2055 dt.Set(1, month, year);
2060 // go to the first weekday of the month
2070 else // count from the end of the month
2072 // get the last day of the month
2073 dt.SetToLastMonthDay(month, year);
2078 // go to the last weekday of the month
2089 // check that it is still in the same month
2090 if ( dt.GetMonth() == month )
2098 // no such day in this month
2425 case _T('b'): // a month name
2498 // can never match the month or day of the month
2558 // Any day,month hours and minutes components should be safe due
2584 case _T('d'): // day of a month (01-31)
2609 case _T('m'): // month as a number (01-12)
2761 // the following 3 letters specify the month
2790 wxLogDebug(_T("Invalid RFC 822 month name '%s'"), monName.c_str());
3278 case _T('b'): // a month name
3334 case _T('d'): // day of a month (01-31)
3382 case _T('m'): // month as a number (01-12)
3702 // day and month/day were found, we just ignore the year day and we
3708 wxLogDebug(_T("bad month day in wxDateTime::ParseFormat"));
3865 // determine if it can be a month, day or a year. Of course, there is an
3872 haveMon = false, // the month?
3903 // assume it is month
3906 else // not the month
3967 // it's a month
3970 // but we already have a month - maybe we guessed wrong?
3973 // no need to check in month range as always < 12, but
3981 // before the month in the japanese format?) (FIXME)
3990 else // not a valid month name
4054 // precede the month/year
4088 // may be we have month and day instead of day and year?
4093 // exchange day and month
4110 // if we give the year, month and day must be given too
4111 wxLogDebug(_T("ParseDate: day and month should be specified if year is."));
4130 // we find the day before its month/year so we have to redo it now
4585 wxASSERT_MSG( m < wxDateTime::Inv_Month, _T("invalid month") );
4593 wxASSERT_MSG( m < wxDateTime::Inv_Month, _T("invalid month") );