Lines Matching refs:nYear
1336 static bool lcl_isLeapYear(const sal_uInt32 nYear) in lcl_isLeapYear() argument
1338 return (((nYear % 4 == 0) && (nYear % 100 != 0)) || in lcl_isLeapYear()
1339 (nYear % 400 == 0)); in lcl_isLeapYear()
1343 lcl_MaxDaysPerMonth(const sal_Int32 nMonth, const sal_Int32 nYear) in lcl_MaxDaysPerMonth() argument
1348 if ((2 == nMonth) && lcl_isLeapYear(nYear)) in lcl_MaxDaysPerMonth()
1371 sal_Int32 nYear(0); in convertDateOrDateTime() local
1373 bSuccess = readDateTimeComponent(string, nPos, nYear, 4, false); in convertDateOrDateTime()
1374 bSuccess &= (0 < nYear); in convertDateOrDateTime()
1406 bSuccess &= (0 < nDay) && (nDay <= lcl_MaxDaysPerMonth(nMonth, nYear)); in convertDateOrDateTime()
1498 lcl_addDay(bNegative, nYear, nMonth, nDay, 1); in convertDateOrDateTime()
1570 lcl_addTimezone(bNegative, nYear, nMonth, nDay, nHours, nMinutes, in convertDateOrDateTime()
1580 rDateTime.Year = static_cast<sal_uInt16>(nYear); in convertDateOrDateTime()
1593 rDate.Year = static_cast<sal_uInt16>(nYear); in convertDateOrDateTime()