/trunk/main/tools/source/datetime/ |
H A D | datetime.cxx | 164 nSec -= nDays * (24UL*60*60); in MakeDateTimeFromSec() 168 operator+=( nDays ); in MakeDateTimeFromSec() 262 aDateTime += nDays; in operator +() 279 aDateTime -= nDays; in operator -() 374 if ( nDays < 0 && fTime > 0.0 ) in operator -() 376 return double(nDays) + fTime; in operator -() 378 return double(nDays); in operator -() 387 sal_Int64 nDays = in GetWin32FileDateTime() local 393 a100nPerDay * nDays + in GetWin32FileDateTime() 414 ( nDays - in CreateFromWin32FileDateTime() [all …]
|
H A D | tdate.cxx | 86 long nDays; in DateToDays() local 88 nDays = ((sal_uIntPtr)nYear-1) * 365; in DateToDays() 91 nDays += DaysInMonth(i,nYear); in DateToDays() 92 nDays += nDay; in DateToDays() 93 return nDays; in DateToDays() 98 static void DaysToDate( long nDays, in DaysToDate() argument 107 nTempDays = (long)nDays; in DaysToDate() 367 nTempDays += nDays; in operator +=() 390 nTempDays -= nDays; in operator -=() 468 aDate += nDays; in operator +() [all …]
|
/trunk/main/oox/source/xls/ |
H A D | unitconverter.cxx | 85 nDays += spnCumDays[ rDate.Month - 1 ]; in lclGetDays() 87 nDays += rDate.Day; in lclGetDays() 93 --nDays; in lclGetDays() 95 return nDays; in lclGetDays() 205 if( nDays >= 366 ) { ++aDateTime.Year; nDays -= 366; } in calcDateTimeFromSerial() 208 lclSkipYearBlock( nDays, aDateTime.Year, 100 * 365 + 24, 100, 3 ); in calcDateTimeFromSerial() 209 lclSkipYearBlock( nDays, aDateTime.Year, 4 * 365 + 1, 4, 24 ); in calcDateTimeFromSerial() 210 lclSkipYearBlock( nDays, aDateTime.Year, 365, 1, 3 ); in calcDateTimeFromSerial() 213 if( (nDays >= 59) && !lclIsLeapYear( aDateTime.Year ) ) ++nDays; in calcDateTimeFromSerial() 215 … while( *pnDaysInMonth >= nDays ) { ++aDateTime.Month; nDays -= *pnDaysInMonth; ++pnDaysInMonth; } in calcDateTimeFromSerial() [all …]
|
/trunk/main/connectivity/java/dbtools/src/org/apache/openoffice/comp/sdbc/dbtools/util/ |
H A D | DBTypeConversion.java | 101 public static void addDays(int nDays, Date _rDate) { in addDays() argument 104 nTempDays += nDays; in addDays() 121 public static void subDays(int nDays, Date _rDate) { in subDays() argument 124 nTempDays -= nDays; in subDays() 171 nTempDays = nDays; in implBuildFromRelative() 215 int nDays = 0; in implRelativeToAbsoluteNull() local 219 nDays = nNormalizedYear * 365; in implRelativeToAbsoluteNull() 224 nDays += implDaysInMonth(i, _rDate.Year); in implRelativeToAbsoluteNull() 226 nDays += _rDate.Day; in implRelativeToAbsoluteNull() 227 return nDays; in implRelativeToAbsoluteNull() [all …]
|
/trunk/main/connectivity/source/commontools/ |
H A D | dbconversion.cxx | 212 sal_Int32 nDays = 0; in implRelativeToAbsoluteNull() local 216 nDays = nNormalizedYear * 365; in implRelativeToAbsoluteNull() 221 nDays += implDaysInMonth(i, _rDate.Year); in implRelativeToAbsoluteNull() 223 nDays += _rDate.Day; in implRelativeToAbsoluteNull() 224 return nDays; in implRelativeToAbsoluteNull() 235 nTempDays = nDays; in implBuildFromRelative() 299 static void addDays(sal_Int32 nDays, Date& _rDate) in addDays() argument 303 nTempDays += nDays; in addDays() 320 static void subDays( sal_Int32 nDays, Date& _rDate ) in subDays() argument 324 nTempDays -= nDays; in subDays() [all …]
|
/trunk/main/scaddins/source/datefunc/ |
H A D | datefunc.cxx | 603 nDays += DaysInMonth(i,nYear); in DateToDays() 604 nDays += nDay; in DateToDays() 606 return nDays; in DateToDays() 618 void DaysToDate( sal_Int32 nDays, in DaysToDate() argument 622 if( nDays < 0 ) in DaysToDate() 631 nTempDays = nDays; in DaysToDate() 863 sal_Int32 nDays = nDate + nNullDate; in getIsLeapYear() local 866 DaysToDate(nDays,nDay,nMonth,nYear); in getIsLeapYear() 880 sal_Int32 nDays = nDate + nNullDate; in getDaysInMonth() local 883 DaysToDate(nDays,nDay,nMonth,nYear); in getDaysInMonth() [all …]
|
/trunk/main/sc/addin/datefunc/ |
H A D | dfa.cl | 137 long nDays; 145 nDays += nDay; 147 return nDays; 387 ULONG nDays; 392 nDays=(int) v + nNullDate; 409 ULONG nDays; 414 nDays=(int) v + nNullDate; 443 ULONG nDays; 449 nDays=(int) v + nNullDate; 475 ULONG nDays; [all …]
|
/trunk/main/forms/source/xforms/xpathlib/ |
H A D | xpathlib.cxx | 351 sal_Int32 nDays = aDateTime - aReferenceDate; in xforms_daysFromDateFunction() local 352 xmlXPathReturnNumber(ctxt, nDays); in xforms_daysFromDateFunction() 376 sal_Int32 nDays = aDateTime - aReferenceDate; in xforms_secondsFromDateTimeFunction() local 377 sal_Int32 nSeconds = nDays * 24 * 60 * 60; in xforms_secondsFromDateTimeFunction() 388 …onst xmlChar* aString, sal_Bool& bNegative, sal_Int32& nYears, sal_Int32& nMonth, sal_Int32& nDays, in parseDuration() argument 424 nDays = atoi(pString); in parseDuration() 460 sal_Int32 nDays = 0; in xforms_secondsFuction() local 465 if (parseDuration(pString, bNegative, nYears, nMonths, nDays, nHours, nMinutes, nSeconds)) in xforms_secondsFuction() 469 nSeconds += nDays*24*60*60; in xforms_secondsFuction() 490 sal_Int32 nDays = 0; in xforms_monthsFuction() local [all …]
|
/trunk/main/tools/inc/tools/ |
H A D | datetime.hxx | 73 DateTime& operator +=( long nDays ) in operator +=() argument 74 { Date::operator+=( nDays ); return *this; } in operator +=() 75 DateTime& operator -=( long nDays ) in operator -=() argument 76 { Date::operator-=( nDays ); return *this; } in operator -=() 83 TOOLS_DLLPUBLIC friend DateTime operator +( const DateTime& rDateTime, long nDays ); 84 TOOLS_DLLPUBLIC friend DateTime operator -( const DateTime& rDateTime, long nDays );
|
H A D | date.hxx | 99 Date& operator +=( long nDays ); 100 Date& operator -=( long nDays ); 108 TOOLS_DLLPUBLIC friend Date operator +( const Date& rDate, long nDays ); 109 TOOLS_DLLPUBLIC friend Date operator -( const Date& rDate, long nDays );
|
/trunk/main/xmloff/source/core/ |
H A D | xmluconv.cxx | 978 sal_Int32 nDays = 0; in convertTime() local 986 if ( nDays ) in convertTime() 987 nHours += nDays * 24; // add the days to the hours part in convertTime() 1030 sal_Int32 nDays = 0, nHours = 0, nMins = 0, nSecs = 0; in convertTime() local 1986 sal_uInt16 nDays = nHours / 24; in convertTimeDuration() local 1987 sTmp.append( (sal_Int32) nDays ); in convertTimeDuration() 1990 nHours -= nDays * 24; in convertTimeDuration() 2032 sal_Int32 nDays = 0; in convertTimeDuration() local 2097 nDays = nTemp; in convertTimeDuration() 2114 if ( nDays ) in convertTimeDuration() [all …]
|
/trunk/main/basic/source/runtime/ |
H A D | methods.cxx | 1818 long nDays = (long)aDate; in implGetDateMonth() local 1819 nDays -= 2; // normieren: 1.1.1900 => 0.0 in implGetDateMonth() 1820 aRefDate += nDays; in implGetDateMonth() 1828 long nDays = (long) aDate; in implGetDateYear() local 1829 nDays -= 2; // normieren: 1.1.1900 => 0.0 in implGetDateYear() 1830 aRefDate += nDays; in implGetDateYear() 1982 rPar.Get(0)->PutDate( nDays ); // JSM in RTLFUNC() 2220 aSerial += nDays; in Now_Impl() 2312 double nDays = (double)GetDayDiff( aToday ); in RTLFUNC() local 2341 pMeth->PutDate( nDays ); in RTLFUNC() [all …]
|
H A D | methods1.cxx | 1871 long nDays = (long) aDate; in implGetWeekDay() local 1872 nDays -= 2; // normieren: 1.1.1900 => 0 in implGetWeekDay() 1873 aRefDate += nDays; in implGetWeekDay()
|
/trunk/main/sfx2/source/doc/ |
H A D | objcont.cxx | 253 sal_uIntPtr nDays = 0 ; // Count of days between now and last editing in UpdateTime_Impl() local 265 nDays = aNow.GetSecFromDateTime(pImp->nTime.GetDate())/86400 ; in UpdateTime_Impl() 267 if (nDays==0) in UpdateTime_Impl() 275 if (nDays<=31) in UpdateTime_Impl() 279 --nDays; in UpdateTime_Impl() 280 nAddTime = nDays*n24Time.GetTime() ; in UpdateTime_Impl()
|
/trunk/main/scaddins/source/analysis/ |
H A D | analysis.cxx | 544 sal_Int32 nDate, sal_Int32 nDays, const ANY& aHDay ) THROWDEF_RTE_IAE in getWorkday() argument 546 if( !nDays ) in getWorkday() 557 if( nDays > 0 ) in getWorkday() 563 while( nDays ) in getWorkday() 570 nDays--; in getWorkday() 582 while( nDays ) in getWorkday() 589 nDays++; in getWorkday()
|
H A D | analysishelper.cxx | 175 sal_Int32 nDays = ((sal_Int32)nYear-1) * 365; in DateToDays() local 176 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays() 179 nDays += DaysInMonth(i,nYear); in DateToDays() 180 nDays += nDay; in DateToDays() 182 return nDays; in DateToDays() 196 void DaysToDate( sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth, sal_uInt16& rYear ) in DaysToDate() argument 199 if( nDays < 0 ) in DaysToDate() 208 nTempDays = nDays; in DaysToDate() 437 sal_Int32 nDays, nMonths/*, nYears*/; in GetDiffDate() local 440 nDays = nD2 - nD1; in GetDiffDate() [all …]
|
/trunk/main/sax/source/tools/ |
H A D | converter.cxx | 774 sal_Int32 nDays = 0; in convertDuration() local 839 nDays = nTemp; in convertDuration() 856 if ( nDays ) in convertDuration() 857 nHours += nDays * 24; // add the days to the hours part in convertDuration() 1077 sal_Int32 nDays(0); in convertDuration() local 1101 nDays, sal_Unicode('D')); in convertDuration() 1206 rDuration.Days = static_cast<sal_Int16>(nDays); in convertDuration()
|
/trunk/main/i18npool/source/localedata/ |
H A D | LocaleNode.cxx | 1271 sal_Int16 nDays = sal::static_int_cast<sal_Int16>( str.toInt32() ); in generateCode() local 1272 if (nDays < 1 || (0 < nbOfDays[i] && nbOfDays[i] < nDays)) in generateCode() 1273 …ncErrorInt( "Bad value of MinimalDaysInFirstWeek: %d, must be 1 <= value <= days_in_week", nDays); in generateCode() 1274 of.writeIntParameter("minimalDaysInFirstWeek", i, nDays); in generateCode()
|
/trunk/main/unotools/source/i18n/ |
H A D | calendarwrapper.cxx | 509 void CalendarWrapper::setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays ) in setMinimumNumberOfDaysForFirstWeek() argument 514 xC->setMinimumNumberOfDaysForFirstWeek( nDays ); in setMinimumNumberOfDaysForFirstWeek()
|
/trunk/main/extensions/source/propctrlr/ |
H A D | standardcontrol.cxx | 316 double nDays = floor( nValue ); in getValue() local 317 aDateTime += nDays; in getValue() 320 double nTime = nValue - nDays; in getValue()
|
/trunk/main/oox/source/dump/ |
H A D | dumperbase.cxx | 2737 sal_Int64 nDays = nFileTime / sal_Int64( 360000 * 24 ); in dumpFileTime() local 2739 …sal_Int64 nYears = (nDays - (nDays / (4 * 365)) + (nDays / (100 * 365)) - (nDays / (400 * 365))) /… in dumpFileTime() 2741 sal_Int64 nDaysInYear = nDays - (nYears * 365 + nYears / 4 - nYears / 100 + nYears / 400); in dumpFileTime()
|
/trunk/main/unotools/inc/unotools/ |
H A D | calendarwrapper.hxx | 86 void setMinimumNumberOfDaysForFirstWeek( sal_Int16 nDays );
|
/trunk/main/i18npool/inc/ |
H A D | calendarImpl.hxx | 72 …virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek(sal_Int16 nDays) throw(com::sun::star::un…
|
H A D | calendar_gregorian.hxx | 71 …virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek(sal_Int16 nDays) throw(com::sun::star::un…
|
/trunk/main/svtools/inc/svtools/ |
H A D | calendar.hxx | 313 void SetMinimumNumberOfDaysInWeek( sal_Int16 nDays );
|