Home
last modified time | relevance | path

Searched refs:nTempDays (Results 1 – 6 of 6) sorted by relevance

/trunk/main/tools/source/datetime/
H A Dtdate.cxx101 long nTempDays; in DaysToDate() local
107 nTempDays = (long)nDays; in DaysToDate()
112 if ( nTempDays < 1 ) in DaysToDate()
119 if ( nTempDays > 365 ) in DaysToDate()
367 nTempDays += nDays; in operator +=()
370 else if ( nTempDays <= 0 ) in operator +=()
390 nTempDays -= nDays; in operator -=()
393 else if ( nTempDays <= 0 ) in operator -=()
415 nTempDays++; in operator ++()
432 if ( nTempDays > 1 ) in operator --()
[all …]
/trunk/main/connectivity/java/dbtools/src/org/apache/openoffice/comp/sdbc/dbtools/util/
H A DDBTypeConversion.java104 nTempDays += nDays; in addDays()
105 if ( nTempDays > MAX_DAYS ) in addDays()
111 else if ( nTempDays <= 0 ) in addDays()
124 nTempDays -= nDays; in subDays()
125 if ( nTempDays > MAX_DAYS ) in subDays()
131 else if ( nTempDays <= 0 ) in subDays()
166 int nTempDays; in implBuildFromRelative() local
171 nTempDays = nDays; in implBuildFromRelative()
176 if ( nTempDays < 1 ) in implBuildFromRelative()
183 if ( nTempDays > 365 ) in implBuildFromRelative()
[all …]
/trunk/main/connectivity/source/commontools/
H A Ddbconversion.cxx229 sal_Int32 nTempDays; in implBuildFromRelative() local
235 nTempDays = nDays; in implBuildFromRelative()
240 if ( nTempDays < 1 ) in implBuildFromRelative()
247 if ( nTempDays > 365 ) in implBuildFromRelative()
265 rDay = (sal_uInt16)nTempDays; in implBuildFromRelative()
303 nTempDays += nDays; in addDays()
304 if ( nTempDays > MAX_DAYS ) in addDays()
310 else if ( nTempDays <= 0 ) in addDays()
324 nTempDays -= nDays; in subDays()
325 if ( nTempDays > MAX_DAYS ) in subDays()
[all …]
/trunk/main/scaddins/source/datefunc/
H A Ddatefunc.cxx625 sal_Int32 nTempDays; in DaysToDate() local
631 nTempDays = nDays; in DaysToDate()
632 rYear = (sal_uInt16)((nTempDays / 365) - i); in DaysToDate()
633 nTempDays -= ((sal_Int32) rYear -1) * 365; in DaysToDate()
634 nTempDays -= (( rYear -1) / 4) - (( rYear -1) / 100) + ((rYear -1) / 400); in DaysToDate()
636 if ( nTempDays < 1 ) in DaysToDate()
643 if ( nTempDays > 365 ) in DaysToDate()
645 if ( (nTempDays != 366) || !IsLeapYear( rYear ) ) in DaysToDate()
656 while ( (sal_Int32)nTempDays > DaysInMonth( rMonth, rYear ) ) in DaysToDate()
658 nTempDays -= DaysInMonth( rMonth, rYear ); in DaysToDate()
[all …]
/trunk/main/sc/addin/datefunc/
H A Ddfa.cl168 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 );
[all …]
/trunk/main/scaddins/source/analysis/
H A Danalysishelper.cxx202 sal_Int32 nTempDays; in DaysToDate() local
208 nTempDays = nDays; in DaysToDate()
209 rYear = (sal_uInt16)((nTempDays / 365) - i); in DaysToDate()
210 nTempDays -= ((sal_Int32) rYear -1) * 365; in DaysToDate()
211 nTempDays -= (( rYear -1) / 4) - (( rYear -1) / 100) + ((rYear -1) / 400); in DaysToDate()
213 if ( nTempDays < 1 ) in DaysToDate()
220 if ( nTempDays > 365 ) in DaysToDate()
222 if ( (nTempDays != 366) || !IsLeapYear( rYear ) ) in DaysToDate()
233 while ( (sal_Int32)nTempDays > DaysInMonth( rMonth, rYear ) ) in DaysToDate()
235 nTempDays -= DaysInMonth( rMonth, rYear ); in DaysToDate()
[all …]

Completed in 61 milliseconds