/aoo41x/main/tools/source/datetime/ |
H A D | tdate.cxx | 71 if ( nMonth != 2 ) in DaysInMonth() 72 return aDaysInMonth[nMonth-1]; in DaysInMonth() 78 return aDaysInMonth[nMonth-1]; in DaysInMonth() 307 sal_uInt16 nMonth; in GetWeekOfYear() local 338 sal_uInt16 nMonth = GetMonth(); in IsValid() local 341 if ( !nMonth || (nMonth > 12) ) in IsValid() 349 else if ( nMonth < 10 ) in IsValid() 363 sal_uInt16 nMonth; in operator +=() local 386 sal_uInt16 nMonth; in operator -=() local 409 sal_uInt16 nMonth; in operator ++() local [all …]
|
/aoo41x/main/scaddins/source/datefunc/ |
H A D | datefunc.cxx | 577 if ( nMonth != 2 ) in DaysInMonth() 578 return aDaysInMonth[nMonth-1]; in DaysInMonth() 763 sal_uInt16 nDay,nMonth,nYear; in getDiffWeeks() local 865 sal_uInt16 nDay, nMonth, nYear; in getIsLeapYear() local 866 DaysToDate(nDays,nDay,nMonth,nYear); in getIsLeapYear() 882 sal_uInt16 nDay, nMonth, nYear; in getDaysInMonth() local 883 DaysToDate(nDays,nDay,nMonth,nYear); in getDaysInMonth() 885 return DaysInMonth( nMonth, nYear ); in getDaysInMonth() 899 sal_uInt16 nDay, nMonth, nYear; in getDaysInYear() local 900 DaysToDate(nDays,nDay,nMonth,nYear); in getDaysInYear() [all …]
|
/aoo41x/main/ucb/source/ucp/ftp/ |
H A D | ftpdirp.cxx | 84 sal_uInt16 nMonth = 0; in parseDOS() local 116 nMonth = *p - '0'; in parseDOS() 127 nMonth = 10 * nMonth + (*p - '0'); in parseDOS() 132 nSize = nMonth; in parseDOS() 133 nMonth = 0; in parseDOS() 139 nSize = nMonth; in parseDOS() 140 nMonth = 0; in parseDOS() 143 else if ((*p == '.' || *p == '-') && nMonth && nMonth <= 12) in parseDOS() 349 nMonth = *p - '0'; in parseDOS() 407 nMonth = 10 * nMonth + (*p - '0'); in parseDOS() [all …]
|
/aoo41x/main/sc/inc/ |
H A D | docoptio.hxx | 39 sal_uInt16 nMonth; member in ScDocOptions 72 { rD = nDay; rM = nMonth; rY = nYear;} in GetDate() 74 { nDay = nD; nMonth = nM; nYear = nY; } in SetDate() 107 rOpt.nMonth = nMonth; in CopyTo() 126 nMonth = rCpy.nMonth; in operator =() 148 && rOpt.nMonth == nMonth in operator ==()
|
/aoo41x/main/sc/addin/datefunc/ |
H A D | dfa.cl | 102 * @param nMonth the number of the Month 109 if ( nMonth != 2 ) 110 return aDaysInMonth[nMonth-1]; 116 return aDaysInMonth[nMonth-1]; 130 * @param nMonth the number of the Month 143 for( i = 1; i < nMonth; i++ ) 277 USHORT nDay,nMonth,nYear; 388 USHORT nDay, nMonth, nYear; 410 USHORT nDay, nMonth, nYear; 444 USHORT nDay, nMonth, nYear; [all …]
|
/aoo41x/main/svl/source/numbers/ |
H A D | zforfind.cxx | 123 nMonth = 0; in Reset() 1518 if ( nMonth < 0 ) in ScanStartString() 1669 nMonth = nTmpMonth; in ScanMidString() 1691 nMonth = nTempMonth; in ScanMidString() 1693 if ( nMonth < 0 ) in ScanMidString() 1951 nMonth = nTmpMonth; in ScanEndString() 1953 if ( nMonth < 0 ) in ScanEndString() 1968 nMonth = nTempMonth; in ScanEndString() 1970 if ( nMonth < 0 ) in ScanEndString() 2573 if (nMonth) in IsNumberFormat() [all …]
|
/aoo41x/main/scaddins/source/analysis/ |
H A D | analysishelper.cxx | 156 if( (nMonth == 2) && IsLeapYear( nYear ) ) in DaysInMonth() 159 return aDaysInMonth[ nMonth ]; in DaysInMonth() 178 for( sal_uInt16 i = 1; i < nMonth; i++ ) in DateToDays() 2813 nMonth( 1 ), in ScaDate() 2835 nMonth( rCopy.nMonth ), in ScaDate() 2850 nMonth = rCopy.nMonth; in operator =() 2964 if( (aFrom.nYear < aTo.nYear) || ((aFrom.nYear == aTo.nYear) && (aFrom.nMonth < aTo.nMonth)) ) in getDiff() 2984 nDiff += aFrom.getDaysInMonthRange( aFrom.nMonth, aTo.nMonth - 1 ); in getDiff() 2985 aFrom.addMonths( aTo.nMonth - aFrom.nMonth ); in getDiff() 2996 if( nMonth != rCmp.nMonth ) in operator <() [all …]
|
H A D | analysishelper.hxx | 63 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ); 64 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ); 90 inline void AlignDate( sal_uInt16& rDay, sal_uInt16 nMonth, sal_uInt16 nYear ); 934 sal_uInt16 nMonth; /// is the current month (one-based). member in ScaDate 972 inline sal_uInt16 getMonth() const { return nMonth; }; in getMonth() 997 return getDaysInMonth( nMonth ); in getDaysInMonth()
|
/aoo41x/main/chart2/source/tools/ |
H A D | NumberFormatterWrapper.cxx | 101 sal_uInt16 nYear = 1899,nDay = 30,nMonth = 12; in getNullDate() local 102 Date aRet(nDay,nMonth,nYear); in getNullDate() 129 sal_uInt16 nYear = 1899,nDay = 30,nMonth = 12; in getFormattedString() local 136 nMonth = pDate->GetMonth(); in getFormattedString() 147 m_pNumberFormatter->ChangeNullDate(nDay,nMonth,nYear); in getFormattedString()
|
/aoo41x/main/unotools/source/i18n/ |
H A D | localedatawrapper.cxx | 1056 xub_StrLen nMonth = rCode.Search( 'M' ); in scanDateFormatImpl() local 1058 if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND ) in scanDateFormatImpl() 1060 if ( nMonth == STRING_NOTFOUND ) in scanDateFormatImpl() 1062 nMonth = rCode.Search( 'K' ); in scanDateFormatImpl() 1063 if ( nMonth != STRING_NOTFOUND ) in scanDateFormatImpl() 1105 if ( nMonth == STRING_NOTFOUND ) in scanDateFormatImpl() 1106 nMonth = rCode.Len(); in scanDateFormatImpl() 1112 if ( nDay <= nMonth && nMonth <= nYear ) in scanDateFormatImpl() 1114 else if ( nMonth <= nDay && nDay <= nYear ) in scanDateFormatImpl() 1116 else if ( nYear <= nMonth && nMonth <= nDay ) in scanDateFormatImpl() [all …]
|
/aoo41x/main/sax/source/tools/ |
H A D | converter.cxx | 1343 lcl_MaxDaysPerMonth(const sal_Int32 nMonth, const sal_Int32 nYear) in lcl_MaxDaysPerMonth() argument 1347 OSL_ASSERT(0 < nMonth && nMonth <= 12); in lcl_MaxDaysPerMonth() 1348 if ((2 == nMonth) && lcl_isLeapYear(nYear)) in lcl_MaxDaysPerMonth() 1352 return s_MaxDaysPerMonth[nMonth - 1]; in lcl_MaxDaysPerMonth() 1386 sal_Int32 nMonth(0); in convertDateOrDateTime() local 1389 bSuccess = readDateTimeComponent(string, nPos, nMonth, 2, true); in convertDateOrDateTime() 1390 bSuccess &= (0 < nMonth) && (nMonth <= 12); in convertDateOrDateTime() 1498 lcl_addDay(bNegative, nYear, nMonth, nDay, 1); in convertDateOrDateTime() 1570 lcl_addTimezone(bNegative, nYear, nMonth, nDay, nHours, nMinutes, in convertDateOrDateTime() 1581 rDateTime.Month = static_cast<sal_uInt16>(nMonth); in convertDateOrDateTime() [all …]
|
/aoo41x/main/ucb/workben/ucb/ |
H A D | srcharg.cxx | 370 USHORT nMonth = 0; in parseSearchArgument() local 372 nMonth = INetMIME::getWeight(*r++); in parseSearchArgument() 376 nMonth = 10 * nMonth + INetMIME::getWeight(*r++); in parseSearchArgument() 394 if (bOK && Date(nDay, nMonth, nYear).IsValid()) in parseSearchArgument() 397 aTheOperand <<= util::Date(nDay, nMonth, nYear); in parseSearchArgument()
|
/aoo41x/main/i18npool/source/calendar/ |
H A D | calendar_gregorian.cxx | 453 sal_Int32 nMonth, sal_Int32 nDay, sal_Int32 nHour, sal_Int32 nMinute, in submitValues() argument 460 if (nMonth >= 0) in submitValues() 461 body->set( UCAL_MONTH, nMonth); in submitValues() 528 …sal_Int32 nZone1, nDST1, nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone0, nDST0; in setValue() local 530 nYear = nMonth = nDay = nHour = nMinute = nSecond = nMilliSecond = -1; in setValue() 542 nMonth = body->get( UCAL_MONTH, status = U_ZERO_ERROR); in setValue() 544 nMonth = -1; in setValue() 590 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone0, nDST0); in setValue() 641 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone2, nDST2); in setValue() 687 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone3, nDST3); in setValue()
|
/aoo41x/main/vcl/source/control/ |
H A D | field2.cxx | 1211 sal_uInt16 nMonth = 0; in ImplDateGetValue() local 1302 if ( bError || !nDay || !nMonth ) in ImplDateGetValue() 1305 Date aNewDate( nDay, nMonth, nYear ); in ImplDateGetValue() 1386 sal_uInt16 nMonth = rDate.GetMonth(); in ImplGetDateAsText() local 1464 sal_uInt16 nMonth = rDate.GetMonth(); in ImplDateIncrementMonth() local 1468 if ( (nMonth == 12) && (nYear < 9999) ) in ImplDateIncrementMonth() 1475 if ( nMonth < 12 ) in ImplDateIncrementMonth() 1476 rDate.SetMonth( nMonth + 1 ); in ImplDateIncrementMonth() 1481 if ( (nMonth == 1) && (nYear > 0) ) in ImplDateIncrementMonth() 1488 if ( nMonth > 1 ) in ImplDateIncrementMonth() [all …]
|
/aoo41x/main/chart2/source/view/axes/ |
H A D | DateHelper.cxx | 64 long nMonth = rD.GetMonth()+nMonthDistance; in GetDateSomeMonthsAway() local 65 long nNewMonth = nMonth%12; in GetDateSomeMonthsAway() 66 long nNewYear = rD.GetYear() + nMonth/12; in GetDateSomeMonthsAway() 67 if( nMonth <= 0 || !nNewMonth ) in GetDateSomeMonthsAway()
|
/aoo41x/main/framework/source/fwi/classes/ |
H A D | converter.cxx | 199 sal_uInt16 nMonth = (sal_uInt16)(sSource.getToken( 0, (sal_Unicode)'.', nIndex ).toInt32()); in convert_String2DateTime() local 213 Date aDate( nDay , nMonth, nYear ); in convert_String2DateTime() 259 sal_Int32 nMonth = aSource.GetMonth(); in convert_DateTime2ISO8601() local 279 if (nMonth<10) in convert_DateTime2ISO8601() 281 sBuffer.append( (sal_Int32)nMonth ); in convert_DateTime2ISO8601()
|
/aoo41x/main/svtools/source/control/ |
H A D | calendar.cxx | 811 sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear, in ImplDrawDate() argument 824 (nMonth == maCurDate.GetMonth()) && in ImplDrawDate() 838 pDateInfo = mpDateTable->Get( Date( nDay, nMonth, 0 ).GetDate() ); in ImplDrawDate() 915 (nMonth == aTodayDate.GetMonth()) && in ImplDrawDate() 955 if( mbDropPos && maDropDate == Date( nDay, nMonth, nYear ) ) in ImplDrawDate() 980 sal_uInt16 nMonth; in ImplDraw() local 1041 nMonth = aDate.GetMonth(); in ImplDraw() 1158 ImplDrawDate( nDeltaX, nDayY, nDay, nMonth, nYear, in ImplDraw() 1880 sal_uInt16 nMonth = aDate.GetMonth(); in RequestHelp() local 1889 if ( (nMonth == 12) && (nWeek == 1) ) in RequestHelp() [all …]
|
/aoo41x/main/sc/source/ui/docshell/ |
H A D | impex.cxx | 1009 sal_Int16 nMonth = (sal_Int16) aMStr.ToInt32(); in lcl_PutString() local 1010 if (!nMonth) in lcl_PutString() 1019 for (i=0; i<nMonthCount && !nMonth; i++) in lcl_PutString() 1023 nMonth = sal::static_int_cast<sal_Int16>( i+1 ); in lcl_PutString() 1029 nMonth = sal::static_int_cast<sal_Int16>( i+1 ); in lcl_PutString() 1033 if ( !nMonth && pSecondCalendar && pSecondTransliteration ) in lcl_PutString() 1037 for (i=0; i<nMonthCount && !nMonth; i++) in lcl_PutString() 1042 nMonth = sal::static_int_cast<sal_Int16>( i+1 ); in lcl_PutString() 1062 if ( nDay && nMonth && nDay<=31 && nMonth<=nNumMonths ) in lcl_PutString() 1064 --nMonth; in lcl_PutString() [all …]
|
/aoo41x/main/tools/inc/tools/ |
H A D | date.hxx | 53 Date( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in Date() argument 55 ( ( sal_uInt32( nMonth % 100 ) ) * 100 ) + in Date() 112 static long DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear );
|
/aoo41x/main/basic/source/runtime/ |
H A D | methods.cxx | 1841 Date aCurDate( nDay, nMonth, nYear ); in implDateSerial() 1849 if ( (nMonth < 1 || nMonth > 12 )|| in implDateSerial() 1859 aCurDate = Date( 1, (( nMonth % 12 ) > 0 ) ? ( nMonth % 12 ) : 12 + ( nMonth % 12 ), nYear ); in implDateSerial() 1864 if( ( nMonth < 1 ) || ( nMonth > 12 ) ) in implDateSerial() 1868 sal_Int16 nYearAdj = ( nMonth /12 ); // default to positive months inputed in implDateSerial() 1869 if ( nMonth <=0 ) in implDateSerial() 1870 nYearAdj = ( ( nMonth -12 ) / 12 ); in implDateSerial() 1946 sal_Int16 nMonth = rPar.Get(2)->GetInteger(); in RTLFUNC() local 1950 if( implDateSerial( nYear, nMonth, nDay, dDate ) ) in RTLFUNC() 2176 sal_Int16 nMonth = implGetDateMonth( rPar.Get(1)->GetDate() ); in RTLFUNC() local [all …]
|
/aoo41x/main/sc/source/core/tool/ |
H A D | interpr2.cxx | 77 nY = nYear, nM = nMonth, nD = nDay; in GetDateSerial() 80 if (nMonth > 0) in GetDateSerial() 82 nY = nYear + (nMonth-1) / 12; in GetDateSerial() 83 nM = ((nMonth-1) % 12) + 1; in GetDateSerial() 87 nY = nYear + (nMonth-12) / 12; in GetDateSerial() 88 nM = 12 - (-nMonth) % 12; in GetDateSerial() 247 sal_Int16 nDay, nMonth, nYear; in ScEasterSunday() local 267 nMonth = sal::static_int_cast<sal_Int16>( int(O / 31) ); in ScEasterSunday() 268 PushDouble( GetDateSerial( nYear, nMonth, nDay, true ) ); in ScEasterSunday() 279 sal_Int16 nMonth = (sal_Int16) ::rtl::math::approxFloor(GetDouble()); in ScGetDate() local [all …]
|
H A D | docoptio.cxx | 86 nMonth( rCpy.nMonth ), in ScDocOptions() 116 nMonth = 12; in ResetDocOptions()
|
/aoo41x/main/xmloff/source/meta/ |
H A D | xmlversion.cxx | 269 sal_Int32 nMonth = 1; in ParseISODateTimeString() local 293 nMonth = aDateStr.getToken( 0, '-', n ).toInt32(); in ParseISODateTimeString() 294 if ( nMonth > 12 ) in ParseISODateTimeString() 341 rDateTime.Month = sal::static_int_cast< sal_uInt16 >(nMonth); in ParseISODateTimeString()
|
/aoo41x/main/forms/source/xforms/xpathlib/ |
H A D | xpathlib.cxx | 319 sal_Int32 nMonth = aDateString.getToken(0, '-', nIndex).toInt32(); in parseDateTime() local 326 Date tmpDate((sal_uInt16)nDay, (sal_uInt16)nMonth, (sal_uInt16)nYear); in parseDateTime() 388 …onst xmlChar* aString, sal_Bool& bNegative, sal_Int32& nYears, sal_Int32& nMonth, sal_Int32& nDays, in parseDuration() argument 417 nMonth = atoi(pString); in parseDuration()
|
/aoo41x/main/sc/source/core/data/ |
H A D | table4.cxx | 1222 long nMonth = aDate.GetMonth(); in IncDate() local 1225 nMonth += nInc; in IncDate() 1229 if (nMonth > 12) in IncDate() 1231 long nYAdd = (nMonth-1) / 12; in IncDate() 1232 nMonth -= nYAdd * 12; in IncDate() 1238 if (nMonth < 1) in IncDate() 1240 long nYAdd = 1 - nMonth / 12; // positiv in IncDate() 1241 nMonth += nYAdd * 12; in IncDate() 1252 aDate.SetMonth((sal_uInt16) nMonth); in IncDate()
|