Lines Matching refs:nYears
357 sal_uInt16 nYears; in GetDiffParam() local
366 nYears = nYear2 - nYear1; in GetDiffParam()
368 nDay2, nMonth2, nYear2, nMode == 0 ) - nYears * nDaysInYear; in GetDiffParam()
371 nYears = nYear2 - nYear1; in GetDiffParam()
375 if( nYears && ( nMonth1 > nMonth2 || ( nMonth1 == nMonth2 && nDay1 > nDay2 ) ) ) in GetDiffParam()
376 nYears--; in GetDiffParam()
378 if( nYears ) in GetDiffParam()
389 nYears = sal_uInt16( ( nDate2 - nDate1 ) / nDaysInYear ); in GetDiffParam()
395 nYears = sal_uInt16( ( nDate2 - nDate1 ) / nDaysInYear ); in GetDiffParam()
403 rYears = nYears; in GetDiffParam()
518 sal_uInt16 nYears; in GetYearFrac() local
521 GetDiffParam( nNullDate, nStartDate, nEndDate, nMode, nYears, nDayDiff, nDaysInYear ); in GetYearFrac()
523 return double( nYears ) + double( nDayDiff ) / double( nDaysInYear ); in GetYearFrac()