Lines Matching refs:nDays

77 …sal_Int32 nDays = rDate.Year * 365 + ((rDate.Year + 3) / 4) - ((rDate.Year + 99) / 100) + ((rDate.…  in lclGetDays()  local
85 nDays += spnCumDays[ rDate.Month - 1 ]; in lclGetDays()
87 nDays += rDate.Day; in lclGetDays()
93 --nDays; in lclGetDays()
95 return nDays; in lclGetDays()
190 …sal_Int32 nDays = lclGetDays( Date( rDateTime.Day, rDateTime.Month, rDateTime.Year ) ) - mnNullDat… in calcSerialFromDateTime() local
191 OSL_ENSURE( nDays >= 0, "UnitConverter::calcDateTimeSerial - invalid date" ); in calcSerialFromDateTime()
193 … return nDays + rDateTime.Hours / 24.0 + rDateTime.Minutes / 1440.0 + rDateTime.Seconds / 86400.0; in calcSerialFromDateTime()
203 sal_Int32 nDays = getLimitedValue< sal_Int32, double >( fDays + mnNullDate, 0, 3652424 ); in calcDateTimeFromSerial() local
205 if( nDays >= 366 ) { ++aDateTime.Year; nDays -= 366; } in calcDateTimeFromSerial()
207 lclSkipYearBlock( nDays, aDateTime.Year, 400 * 365 + 97, 400, 24 ); 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()
216 aDateTime.Day = static_cast< sal_uInt16 >( nDays + 1 ); in calcDateTimeFromSerial()