Lines Matching refs:nTempDays
229 sal_Int32 nTempDays; in implBuildFromRelative() local
235 nTempDays = nDays; in implBuildFromRelative()
236 rYear = (sal_uInt16)((nTempDays / 365) - i); in implBuildFromRelative()
237 nTempDays -= (rYear-1) * 365; in implBuildFromRelative()
238 nTempDays -= ((rYear-1) / 4) - ((rYear-1) / 100) + ((rYear-1) / 400); in implBuildFromRelative()
240 if ( nTempDays < 1 ) in implBuildFromRelative()
247 if ( nTempDays > 365 ) in implBuildFromRelative()
249 if ( (nTempDays != 366) || !implIsLeapYear( rYear ) ) in implBuildFromRelative()
260 while ( nTempDays > implDaysInMonth( rMonth, rYear ) ) in implBuildFromRelative()
262 nTempDays -= implDaysInMonth( rMonth, rYear ); in implBuildFromRelative()
265 rDay = (sal_uInt16)nTempDays; in implBuildFromRelative()
301 sal_Int32 nTempDays = implRelativeToAbsoluteNull( _rDate ); in addDays() local
303 nTempDays += nDays; in addDays()
304 if ( nTempDays > MAX_DAYS ) in addDays()
310 else if ( nTempDays <= 0 ) in addDays()
317 implBuildFromRelative( nTempDays, _rDate.Day, _rDate.Month, _rDate.Year ); in addDays()
322 sal_Int32 nTempDays = implRelativeToAbsoluteNull( _rDate ); in subDays() local
324 nTempDays -= nDays; in subDays()
325 if ( nTempDays > MAX_DAYS ) in subDays()
331 else if ( nTempDays <= 0 ) in subDays()
338 implBuildFromRelative( nTempDays, _rDate.Day, _rDate.Month, _rDate.Year ); in subDays()