Lines Matching refs:nWeek
231 short nWeek; in GetWeekOfYear() local
248 nWeek = ((n1WDay+nDayOfYear)/7) + 1; in GetWeekOfYear()
251 if ( nWeek == 54 ) in GetWeekOfYear()
252 nWeek = 1; in GetWeekOfYear()
253 else if ( nWeek == 53 ) in GetWeekOfYear()
259 nWeek = 1; in GetWeekOfYear()
264 nWeek = ((n1WDay+nDayOfYear)/7); in GetWeekOfYear()
267 if ( nWeek == 0 ) in GetWeekOfYear()
270 nWeek = aLastDatePrevYear.GetWeekOfYear( eStartDay, nMinimumNumberOfDaysInWeek ); in GetWeekOfYear()
277 nWeek = 1; in GetWeekOfYear()
280 nWeek = 53; in GetWeekOfYear()
286 nWeek = 53; in GetWeekOfYear()
288 nWeek = 52; in GetWeekOfYear()
292 nWeek = 52; in GetWeekOfYear()
294 if ( (nWeek == 1) || (nDayOfYear + n1WDay > 6) ) in GetWeekOfYear()
296 if ( nWeek == 1 ) in GetWeekOfYear()
297 nWeek += (nDayOfYear + n1WDay) / 7; in GetWeekOfYear()
299 nWeek = (nDayOfYear + n1WDay) / 7; in GetWeekOfYear()
300 if ( nWeek == 53 ) in GetWeekOfYear()
310 nWeek = Date( nDay, nMonth, nYear ).GetWeekOfYear( eStartDay, nMinimumNumberOfDaysInWeek ); in GetWeekOfYear()
315 return (sal_uInt16)nWeek; in GetWeekOfYear()