Lines Matching refs:nYear

59 inline sal_Bool ImpIsLeapYear( sal_uInt16 nYear )  in ImpIsLeapYear()  argument
62 ( ((nYear % 4) == 0) && ((nYear % 100) != 0) ) || in ImpIsLeapYear()
63 ( (nYear % 400) == 0 ) in ImpIsLeapYear()
69 inline sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument
75 if (ImpIsLeapYear(nYear)) in DaysInMonth()
84 long Date::DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument
88 nDays = ((sal_uIntPtr)nYear-1) * 365; in DateToDays()
89 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
91 nDays += DaysInMonth(i,nYear); in DateToDays()
184 sal_uIntPtr nYear = GetYear(); in SetDay() local
186 nDate = ((sal_uIntPtr)(nNewDay%100)) + (nMonth*100) + (nYear*10000); in SetDay()
194 sal_uIntPtr nYear = GetYear(); in SetMonth() local
196 nDate = nDay + (((sal_uIntPtr)(nNewMonth%100))*100) + (nYear*10000); in SetMonth()
308 sal_uInt16 nYear; in GetWeekOfYear() local
309 DaysToDate( nTempDays, nDay, nMonth, nYear ); in GetWeekOfYear()
310 nWeek = Date( nDay, nMonth, nYear ).GetWeekOfYear( eStartDay, nMinimumNumberOfDaysInWeek ); in GetWeekOfYear()
329 sal_uInt16 nYear = GetYear(); in IsLeapYear() local
330 return ImpIsLeapYear( nYear ); in IsLeapYear()
339 sal_uInt16 nYear = GetYear(); in IsValid() local
343 if ( !nDay || (nDay > DaysInMonth( nMonth, nYear )) ) in IsValid()
345 else if ( nYear <= 1582 ) in IsValid()
347 if ( nYear < 1582 ) in IsValid()
364 sal_uInt16 nYear; in operator +=() local
374 DaysToDate( nTempDays, nDay, nMonth, nYear ); in operator +=()
375 nDate = ((sal_uIntPtr)nDay) + (((sal_uIntPtr)nMonth)*100) + (((sal_uIntPtr)nYear)*10000); in operator +=()
387 sal_uInt16 nYear; in operator -=() local
397 DaysToDate( nTempDays, nDay, nMonth, nYear ); in operator -=()
398 nDate = ((sal_uIntPtr)nDay) + (((sal_uIntPtr)nMonth)*100) + (((sal_uIntPtr)nYear)*10000); in operator -=()
410 sal_uInt16 nYear; in operator ++() local
416 DaysToDate( nTempDays, nDay, nMonth, nYear ); in operator ++()
417 nDate = ((sal_uIntPtr)nDay) + (((sal_uIntPtr)nMonth)*100) + (((sal_uIntPtr)nYear)*10000); in operator ++()
429 sal_uInt16 nYear; in operator --() local
435 DaysToDate( nTempDays, nDay, nMonth, nYear ); in operator --()
436 nDate = ((sal_uIntPtr)nDay) + (((sal_uIntPtr)nMonth)*100) + (((sal_uIntPtr)nYear)*10000); in operator --()