Lines Matching refs:aDateTime
198 DateTime aDateTime( 0, 0, 0, 0, 1, 1, 0 ); 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()
220 aDateTime.Seconds = static_cast< sal_uInt16 >( nTime % 60 ); in calcDateTimeFromSerial()
222 aDateTime.Minutes = static_cast< sal_uInt16 >( nTime % 60 ); in calcDateTimeFromSerial()
223 aDateTime.Hours = static_cast< sal_uInt16 >( nTime / 60 ); in calcDateTimeFromSerial()
225 return aDateTime; in calcDateTimeFromSerial()