Lines Matching refs:nTempDays
168 long nTempDays;
174 nTempDays = (long)nDays;
175 *pYear = (USHORT)((nTempDays / 365) - i);
176 nTempDays -= ((ULONG) *pYear -1) * 365;
177 nTempDays -= (( *pYear -1) / 4) - (( *pYear -1) / 100) + ((*pYear -1) / 400);
179 if ( nTempDays < 1 )
186 if ( nTempDays > 365 )
188 if ( (nTempDays != 366) || !IsLeapYear( *pYear ) )
199 while ( (ULONG)nTempDays > DaysInMonth( *pMonth, *pYear ) )
201 nTempDays -= DaysInMonth( *pMonth, *pYear );
204 *pDay = (USHORT)nTempDays;