Home
last modified time | relevance | path

Searched refs:nYear (Results 1 – 25 of 61) sorted by relevance

123

/trunk/main/tools/source/datetime/
H A Dtdate.cxx62 ( ((nYear % 4) == 0) && ((nYear % 100) != 0) ) || in ImpIsLeapYear()
75 if (ImpIsLeapYear(nYear)) in DaysInMonth()
89 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
91 nDays += DaysInMonth(i,nYear); in DateToDays()
308 sal_uInt16 nYear; in GetWeekOfYear() local
345 else if ( nYear <= 1582 ) in IsValid()
347 if ( nYear < 1582 ) in IsValid()
364 sal_uInt16 nYear; in operator +=() local
387 sal_uInt16 nYear; in operator -=() local
410 sal_uInt16 nYear; in operator ++() local
[all …]
/trunk/main/scaddins/source/datefunc/
H A Ddatefunc.cxx567 sal_Bool IsLeapYear( sal_uInt16 nYear ) in IsLeapYear() argument
569 return ((((nYear % 4) == 0) && ((nYear % 100) != 0)) || ((nYear % 400) == 0)); in IsLeapYear()
581 if ( IsLeapYear(nYear) ) in DaysInMonth()
600 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
603 nDays += DaysInMonth(i,nYear); in DateToDays()
763 sal_uInt16 nDay,nMonth,nYear; in getDiffWeeks() local
865 sal_uInt16 nDay, nMonth, nYear; in getIsLeapYear() local
866 DaysToDate(nDays,nDay,nMonth,nYear); in getIsLeapYear()
882 sal_uInt16 nDay, nMonth, nYear; in getDaysInMonth() local
899 sal_uInt16 nDay, nMonth, nYear; in getDaysInYear() local
[all …]
/trunk/main/ucb/source/ucp/ftp/
H A Dftpdirp.cxx83 sal_uInt16 nYear = 0; in parseDOS() local
175 nYear = 10 * nYear + (*p - '0'); in parseDOS()
444 nYear = 10 * nYear + (*p - '0'); in parseDOS()
792 sal_uInt16 nYear = 0; in parseVMS() local
797 nYear = 10 * nYear + (*p++ - '0'); in parseVMS()
801 nYear = 10 * nYear + (*p++ - '0'); in parseVMS()
804 nYear = 10 * nYear + (*p++ - '0'); in parseVMS()
1245 if (nYear < 100) in setYear()
1256 if (nYear <= nCurrentYear) in setYear()
1263 if (nYear >= nCurrentYear) in setYear()
[all …]
/trunk/main/sc/addin/datefunc/
H A Ddfa.cl95 return (BOOL)((((nYear % 4) == 0) && ((nYear % 100) != 0)) || ((nYear % 400) == 0));
103 * @param nYear the year
113 if ( IsLeapYear(nYear) )
131 * @param nYear the Year
141 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400);
277 USHORT nDay,nMonth,nYear;
281 nJan4=DateToDays(4,1,nYear);
388 USHORT nDay, nMonth, nYear;
410 USHORT nDay, nMonth, nYear;
444 USHORT nDay, nMonth, nYear;
[all …]
/trunk/main/sc/inc/
H A Ddocoptio.hxx40 sal_uInt16 nYear; member in ScDocOptions
72 { rD = nDay; rM = nMonth; rY = nYear;} in GetDate()
74 { nDay = nD; nMonth = nM; nYear = nY; } in SetDate()
109 rOpt.nYear = nYear; in CopyTo()
127 nYear = rCpy.nYear; in operator =()
149 && rOpt.nYear == nYear in operator ==()
/trunk/main/scaddins/source/analysis/
H A Danalysishelper.cxx176 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
179 nDays += DaysInMonth(i,nYear); in DateToDays()
2814 nYear( 1900 ), in ScaDate()
2836 nYear( rCopy.nYear ), in ScaDate()
2851 nYear = rCopy.nYear; in operator =()
2964 if( (aFrom.nYear < aTo.nYear) || ((aFrom.nYear == aTo.nYear) && (aFrom.nMonth < aTo.nMonth)) ) in getDiff()
2972 if( aFrom.nYear < aTo.nYear ) in getDiff()
2979 nDiff += aFrom.getDaysInYearRange( aFrom.nYear, aTo.nYear - 1 ); in getDiff()
2980 aFrom.addYears( aTo.nYear - aFrom.nYear ); in getDiff()
2994 if( nYear != rCmp.nYear ) in operator <()
[all …]
H A Danalysis.cxx625 sal_uInt16 nDay, nMonth, nYear; in getWeeknum() local
626 DaysToDate( nDate, nDay, nMonth, nYear ); in getWeeknum()
628 sal_Int32 nFirstInYear = DateToDays( 1, 1, nYear ); in getWeeknum()
639 sal_uInt16 nDay, nMonth, nYear; in getEomonth() local
640 DaysToDate( nDate, nDay, nMonth, nYear ); in getEomonth()
646 nYear = sal::static_int_cast<sal_uInt16>( nYear + ( nNewMonth / 12 ) ); in getEomonth()
652 nYear = sal::static_int_cast<sal_uInt16>( nYear - ( nNewMonth / 12 ) ); in getEomonth()
653 nYear--; in getEomonth()
658 …return DateToDays( DaysInMonth( sal_uInt16( nNewMonth ), nYear ), sal_uInt16( nNewMonth ), nYear )… in getEomonth()
H A Danalysishelper.hxx62 inline sal_Bool IsLeapYear( sal_uInt16 nYear );
63 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear );
64 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear );
90 inline void AlignDate( sal_uInt16& rDay, sal_uInt16 nMonth, sal_uInt16 nYear );
935 sal_uInt16 nYear; /// is the current year. member in ScaDate
974 inline sal_uInt16 getYear() const { return nYear; }; in getYear()
1002 return b30Days ? 30 : DaysInMonth( _nMon, nYear ); in getDaysInMonth()
1007 nYear = nNewYear; in setYear()
/trunk/main/unotools/source/i18n/
H A Dlocaledatawrapper.cxx1057 xub_StrLen nYear = rCode.Search( 'Y' ); in scanDateFormatImpl() local
1066 nYear = rCode.Search( 'V' ); in scanDateFormatImpl()
1075 nYear = rCode.Search( 'J' ); in scanDateFormatImpl()
1079 if ( nYear != STRING_NOTFOUND ) in scanDateFormatImpl()
1092 if ( nYear == STRING_NOTFOUND ) in scanDateFormatImpl()
1093 nYear = rCode.Search( 'J' ); // Dutch in scanDateFormatImpl()
1107 if ( nYear == STRING_NOTFOUND ) in scanDateFormatImpl()
1108 nYear = rCode.Len(); in scanDateFormatImpl()
1112 if ( nDay <= nMonth && nMonth <= nYear ) in scanDateFormatImpl()
1515 sal_uInt16 nYear = rDate.GetYear(); in getDate() local
[all …]
/trunk/main/vcl/source/control/
H A Dfield2.cxx1212 sal_uInt16 nYear = 0; in ImplDateGetValue() local
1251 nYear = Date().GetYear(); in ImplDateGetValue()
1377 if ( (nYear < nTwoDigitYearStart) || (nYear >= nTwoDigitYearStart+100) ) in ImplGetDateAsText()
1387 sal_uInt16 nYear = rDate.GetYear(); in ImplGetDateAsText() local
1391 nYear %= 100; in ImplGetDateAsText()
1465 sal_uInt16 nYear = rDate.GetYear(); in ImplDateIncrementMonth() local
1471 rDate.SetYear( nYear + 1 ); in ImplDateIncrementMonth()
1484 rDate.SetYear( nYear - 1 ); in ImplDateIncrementMonth()
1504 sal_uInt16 nYear = rDate.GetYear(); in ImplDateIncrementYear() local
1507 if ( nYear < 9999 ) in ImplDateIncrementYear()
[all …]
/trunk/main/framework/source/fwi/classes/
H A Dconverter.cxx202 … sal_uInt16 nYear = (sal_uInt16)(sSource.getToken( 0, (sal_Unicode)'/', nIndex ).toInt32()); in convert_String2DateTime() local
213 Date aDate( nDay , nMonth, nYear ); in convert_String2DateTime()
258 sal_Int32 nYear = aSource.GetYear(); in convert_DateTime2ISO8601() local
267 if (nYear<10) in convert_DateTime2ISO8601()
270 if (nYear<100) in convert_DateTime2ISO8601()
273 if (nYear<1000) in convert_DateTime2ISO8601()
275 sBuffer.append( (sal_Int32)nYear ); in convert_DateTime2ISO8601()
/trunk/main/svl/inc/svl/
H A Dzforlist.hxx363 void ChangeNullDate(sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear);
662 sal_uInt16 ExpandTwoDigitYear( sal_uInt16 nYear ) const;
663 inline static sal_uInt16 ExpandTwoDigitYear( sal_uInt16 nYear, sal_uInt16 nTwoDigitYearStart );
1016 sal_uInt16 nYear, sal_uInt16 nTwoDigitYearStart ) in ExpandTwoDigitYear() argument
1018 if ( nYear < 100 ) in ExpandTwoDigitYear()
1020 if ( nYear < (nTwoDigitYearStart % 100) ) in ExpandTwoDigitYear()
1021 return nYear + (((nTwoDigitYearStart / 100) + 1) * 100); in ExpandTwoDigitYear()
1023 return nYear + ((nTwoDigitYearStart / 100) * 100); in ExpandTwoDigitYear()
1025 return nYear; in ExpandTwoDigitYear()
/trunk/main/chart2/source/tools/
H A DNumberFormatterWrapper.cxx101 sal_uInt16 nYear = 1899,nDay = 30,nMonth = 12; in getNullDate() local
102 Date aRet(nDay,nMonth,nYear); in getNullDate()
129 sal_uInt16 nYear = 1899,nDay = 30,nMonth = 12; in getFormattedString() local
135 nYear = pDate->GetYear(); in getFormattedString()
147 m_pNumberFormatter->ChangeNullDate(nDay,nMonth,nYear); in getFormattedString()
/trunk/main/sax/source/tools/
H A Dconverter.cxx1336 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()
1498 lcl_addDay(bNegative, nYear, nMonth, nDay, 1); in convertDateOrDateTime()
1580 rDateTime.Year = static_cast<sal_uInt16>(nYear); in convertDateOrDateTime()
[all …]
/trunk/main/i18npool/source/calendar/
H A Dcalendar_gregorian.cxx452 void Calendar_gregorian::submitValues( sal_Int32 nYear, in submitValues() argument
458 if (nYear >= 0) in submitValues()
459 body->set( UCAL_YEAR, nYear); in submitValues()
528 …sal_Int32 nZone1, nDST1, nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone0, nDST0; in setValue() local
530 nYear = nMonth = nDay = nHour = nMinute = nSecond = nMilliSecond = -1; in setValue()
536 nYear = body->get( UCAL_YEAR, status = U_ZERO_ERROR); in setValue()
538 nYear = -1; in setValue()
590 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone0, nDST0); in setValue()
641 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone2, nDST2); in setValue()
687 … submitValues( nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilliSecond, nZone3, nDST3); in setValue()
/trunk/main/sc/source/core/tool/
H A Dinterpr2.cxx71 if ( nYear < 100 && !bStrict ) in GetDateSerial()
72 nYear = pFormatter->ExpandTwoDigitYear( nYear ); in GetDateSerial()
82 nY = nYear + (nMonth-1) / 12; in GetDateSerial()
87 nY = nYear + (nMonth-12) / 12; in GetDateSerial()
247 sal_Int16 nDay, nMonth, nYear; in ScEasterSunday() local
249 if ( nYear < 100 ) in ScEasterSunday()
250 nYear = pFormatter->ExpandTwoDigitYear( nYear ); in ScEasterSunday()
253 N = nYear % 19; in ScEasterSunday()
254 B = int(nYear / 100); in ScEasterSunday()
255 C = nYear % 100; in ScEasterSunday()
[all …]
/trunk/main/xmloff/source/text/
H A DXMLCalculationSettingsContext.cxx50 , nYear( 1930 ) in XMLCalculationSettingsContext()
67 nYear= static_cast <sal_Int16> (nTemp); in XMLCalculationSettingsContext()
78 if (nYear != 1930 ) in EndElement()
86 aAny <<= nYear; in EndElement()
/trunk/main/package/source/package/zipapi/
H A DZipOutputStream.cxx414 sal_uInt32 nYear = static_cast <sal_uInt32> (aDateTime.Year); in getCurrentDosTime() local
416 if (nYear>1980) in getCurrentDosTime()
417 nYear-=1980; in getCurrentDosTime()
418 else if (nYear>80) in getCurrentDosTime()
419 nYear-=80; in getCurrentDosTime()
422 ( 512 * nYear ) ) << 16) | in getCurrentDosTime()
/trunk/main/basic/source/runtime/
H A Dmethods1.cxx2048 sal_Int16 nYear, nMonth, nDay; in RTLFUNC() local
2050 implGetDayMonthYear( nYear, nMonth, nDay, dDate ); in RTLFUNC()
2055 sal_Int32 nTargetYear = lNumber + nYear; in RTLFUNC()
2089 nTargetYear = (sal_Int32)nYear - nYearsAdd; in RTLFUNC()
2099 nTargetYear = (sal_Int32)nYear + nYearsAdd; in RTLFUNC()
2271 ( sal_Int16 nYear, sal_Int16& nFirstDay, sal_Int16& nFirstWeek, bool* pbError = NULL ) in implGetDateOfFirstDayInFirstWeek() argument
2319 implDateSerial( nYear, 1, 1, dBaseDate ); in implGetDateOfFirstDayInFirstWeek()
2381 sal_Int16 nYear = implGetDateYear( dDate ); in RTLFUNC() local
2383 implDateSerial( nYear, 1, 1, dBaseDate ); in RTLFUNC()
2414 sal_Int16 nYear = implGetDateYear( dDate ); in RTLFUNC() local
[all …]
/trunk/main/tools/source/inet/
H A Dinetmsg.cxx472 sal_uInt16 nYear = ParseNumber (rDateField, nIndex); in ParseDateField() local
473 if (nYear < 100) nYear += 1900; in ParseDateField()
474 rDateTime.SetYear (nYear); in ParseDateField()
484 sal_uInt16 nYear = ParseNumber (rDateField, nIndex); nIndex++; in ParseDateField() local
485 if (nYear < 100) nYear += 1900; in ParseDateField()
486 rDateTime.SetYear (nYear); in ParseDateField()
/trunk/main/ucb/workben/ucb/
H A Dsrcharg.cxx388 USHORT nYear = 0; in parseSearchArgument() local
391 nYear = 10 * nYear + INetMIME::getWeight(*r++); in parseSearchArgument()
394 if (bOK && Date(nDay, nMonth, nYear).IsValid()) in parseSearchArgument()
397 aTheOperand <<= util::Date(nDay, nMonth, nYear); in parseSearchArgument()
/trunk/main/svtools/source/control/
H A Dcalendar.cxx811 sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear, in ImplDrawDate() argument
825 (nYear == maCurDate.GetYear()) ) in ImplDrawDate()
916 (nYear == aTodayDate.GetYear()) ) in ImplDrawDate()
955 if( mbDropPos && maDropDate == Date( nDay, nMonth, nYear ) ) in ImplDrawDate()
981 sal_uInt16 nYear; in ImplDraw() local
1042 nYear = aDate.GetYear(); in ImplDraw()
1050 aMonthText += String::CreateFromInt64( nYear ); in ImplDraw()
1068 aMonthText += String::CreateFromInt64( nYear ); in ImplDraw()
1158 ImplDrawDate( nDeltaX, nDayY, nDay, nMonth, nYear, in ImplDraw()
1433 sal_uInt16 nYear = rDate.GetYear()-1; in ImplShowMenu() local
[all …]
/trunk/main/oox/source/xls/
H A Dunitconverter.cxx60 inline sal_Int32 lclIsLeapYear( sal_Int32 nYear ) in lclIsLeapYear() argument
62 return ((nYear % 4) == 0) && (((nYear % 100) != 0) || ((nYear % 400) == 0)); in lclIsLeapYear()
/trunk/main/sc/source/core/data/
H A Dtable4.cxx1223 long nYear = aDate.GetYear(); in IncDate() local
1233 nYear += nYAdd; in IncDate()
1242 nYear -= nYAdd; in IncDate()
1246 if ( nYear < nMinYear ) in IncDate()
1248 else if ( nYear > nMaxYear ) in IncDate()
1253 aDate.SetYear((sal_uInt16) nYear); in IncDate()
1261 long nYear = aDate.GetYear(); in IncDate() local
1262 nYear += nInc; in IncDate()
1263 if ( nYear < nMinYear ) in IncDate()
1265 else if ( nYear > nMaxYear ) in IncDate()
[all …]
/trunk/main/tools/inc/tools/
H A Ddate.hxx53 Date( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in Date() argument
56 ( ( sal_uInt32( nYear % 10000 ) ) * 10000); } in Date()
112 static long DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear );

Completed in 229 milliseconds

123