| /AOO41X/main/tools/source/datetime/ |
| H A D | tdate.cxx | 69 inline sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument 71 if ( nMonth != 2 ) in DaysInMonth() 72 return aDaysInMonth[nMonth-1]; in DaysInMonth() 76 return aDaysInMonth[nMonth-1] + 1; in DaysInMonth() 78 return aDaysInMonth[nMonth-1]; in DaysInMonth() 84 long Date::DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument 90 for( sal_uInt16 i = 1; i < nMonth; i++ ) in DateToDays() 183 sal_uIntPtr nMonth = GetMonth(); in SetDay() local 186 nDate = ((sal_uIntPtr)(nNewDay%100)) + (nMonth*100) + (nYear*10000); in SetDay() 204 sal_uIntPtr nMonth = GetMonth(); in SetYear() local [all …]
|
| /AOO41X/main/scaddins/source/datefunc/ |
| H A D | datefunc.cxx | 572 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument 577 if ( nMonth != 2 ) in DaysInMonth() 578 return aDaysInMonth[nMonth-1]; in DaysInMonth() 582 return aDaysInMonth[nMonth-1] + 1; in DaysInMonth() 584 return aDaysInMonth[nMonth-1]; in DaysInMonth() 597 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument 602 for( sal_uInt16 i = 1; i < nMonth; i++ ) in DateToDays() 763 sal_uInt16 nDay,nMonth,nYear; in getDiffWeeks() local 764 DaysToDate( nDays1, nDay, nMonth, nYear ); in getDiffWeeks() 865 sal_uInt16 nDay, nMonth, nYear; in getIsLeapYear() local [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() 395 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 107 static USHORT DaysInMonth( USHORT nMonth, USHORT nYear ) 109 if ( nMonth != 2 ) 110 return aDaysInMonth[nMonth-1]; 114 return aDaysInMonth[nMonth-1] + 1; 116 return aDaysInMonth[nMonth-1]; 130 * @param nMonth the number of the Month 135 static long DateToDays( USHORT nDay, USHORT nMonth, USHORT nYear ) 143 for( i = 1; i < nMonth; i++ ) 277 USHORT nDay,nMonth,nYear; [all …]
|
| /AOO41X/main/svl/source/numbers/ |
| H A D | zforfind.cxx | 123 nMonth = 0; in Reset() 1091 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1104 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1120 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1233 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1248 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1322 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1332 pCal->setValue( CalendarFieldIndex::MONTH, Abs(nMonth)-1 ); in GetDateRef() 1513 nMonth = GetMonth(rString, nPos); in ScanStartString() 1514 if ( nMonth ) // month (Jan 1)? in ScanStartString() [all …]
|
| /AOO41X/main/scaddins/source/analysis/ |
| H A D | analysishelper.cxx | 154 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument 156 if( (nMonth == 2) && IsLeapYear( nYear ) ) in DaysInMonth() 159 return aDaysInMonth[ nMonth ]; in DaysInMonth() 173 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument 178 for( sal_uInt16 i = 1; i < nMonth; i++ ) in DateToDays() 2813 nMonth( 1 ), in ScaDate() 2824 DaysToDate( nNullDate + nDate, nOrigDay, nMonth, nYear ); in ScaDate() 2826 bLastDay = (nOrigDay >= ::DaysInMonth( nMonth, nYear )); in ScaDate() 2835 nMonth( rCopy.nMonth ), in ScaDate() 2850 nMonth = rCopy.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() 1095 if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == 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() [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() 1406 bSuccess &= (0 < nDay) && (nDay <= lcl_MaxDaysPerMonth(nMonth, nYear)); in convertDateOrDateTime() 1498 lcl_addDay(bNegative, nYear, nMonth, nDay, 1); in convertDateOrDateTime() 1570 lcl_addTimezone(bNegative, nYear, nMonth, nDay, nHours, nMinutes, 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 1223 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue() 1229 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue() 1235 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue() 1264 nMonth = ImplGetNum( pBuf, bError ); in ImplDateGetValue() 1273 nMonth = ImplGetNum( pBuf, bError ); in ImplDateGetValue() 1289 nMonth = ImplGetNum( pBuf, bError ); in ImplDateGetValue() 1302 if ( bError || !nDay || !nMonth ) in ImplDateGetValue() 1305 Date aNewDate( nDay, nMonth, nYear ); in ImplDateGetValue() 1386 sal_uInt16 nMonth = rDate.GetMonth(); in ImplGetDateAsText() local [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() 829 if ( mpSelectTable->IsKeyValid( Date( nDay, nMonth, nYear ).GetDate() ) ) in ImplDrawDate() 836 pDateInfo = mpDateTable->Get( Date( nDay, nMonth, nYear ).GetDate() ); 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() 1048 i18n::CalendarDisplayIndex::MONTH, nMonth-1, 1)); in ImplDraw() [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() 1049 nMonth = sal::static_int_cast<sal_Int16>( i+1 ); in lcl_PutString() 1062 if ( nDay && nMonth && nDay<=31 && nMonth<=nNumMonths ) 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 | 1835 sal_Bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, double& rdRet ) in implDateSerial() argument 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() [all …]
|
| /AOO41X/main/sc/source/core/tool/ |
| H A D | interpr2.cxx | 66 double ScInterpreter::GetDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bStric… in GetDateSerial() argument 75 nY = nYear, nM = nMonth, nD = nDay; in GetDateSerial() 78 if (nMonth > 0) in GetDateSerial() 80 nY = nYear + (nMonth-1) / 12; in GetDateSerial() 81 nM = ((nMonth-1) % 12) + 1; in GetDateSerial() 85 nY = nYear + (nMonth-12) / 12; in GetDateSerial() 86 nM = 12 - (-nMonth) % 12; in GetDateSerial() 245 sal_Int16 nDay, nMonth, nYear; in ScEasterSunday() local 265 nMonth = sal::static_int_cast<sal_Int16>( int(O / 31) ); in ScEasterSunday() 266 PushDouble( GetDateSerial( nYear, nMonth, nDay, true ) ); in ScEasterSunday() [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()
|