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.cxx59 inline sal_Bool ImpIsLeapYear( sal_uInt16 nYear ) in ImpIsLeapYear() argument
62 ( ((nYear % 4) == 0) && ((nYear % 100) != 0) ) || in ImpIsLeapYear()
63 ( (nYear % 400) == 0 ) in ImpIsLeapYear()
69 inline sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument
75 if (ImpIsLeapYear(nYear)) in DaysInMonth()
84 long Date::DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument
88 nDays = ((sal_uIntPtr)nYear-1) * 365; in DateToDays()
89 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
91 nDays += DaysInMonth(i,nYear); in DateToDays()
184 sal_uIntPtr nYear = GetYear(); in SetDay() 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()
572 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument
581 if ( IsLeapYear(nYear) ) in DaysInMonth()
597 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument
599 sal_Int32 nDays = ((sal_Int32)nYear-1) * 365; in DateToDays()
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
764 DaysToDate( nDays1, nDay, nMonth, nYear ); in getDiffWeeks()
[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()
516 setYear (rEntry.m_aDate, nYear); 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()
806 setYear (rEntry.m_aDate, nYear); in parseVMS()
1243 DateTime &rDateTime, sal_uInt16 nYear) in setYear() argument
[all …]
/trunk/main/sc/addin/datefunc/
H A Ddfa.cl86 * @param nYear the year which should be checked
93 static BOOL IsLeapYear( USHORT nYear )
95 return (BOOL)((((nYear % 4) == 0) && ((nYear % 100) != 0)) || ((nYear % 400) == 0));
103 * @param nYear the year
107 static USHORT DaysInMonth( USHORT nMonth, USHORT nYear )
113 if ( IsLeapYear(nYear) )
131 * @param nYear the Year
135 static long DateToDays( USHORT nDay, USHORT nMonth, USHORT nYear )
140 nDays = ((ULONG)nYear-1) * 365;
141 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400);
[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.cxx154 sal_uInt16 DaysInMonth( sal_uInt16 nMonth, sal_uInt16 nYear ) in DaysInMonth() argument
156 if( (nMonth == 2) && IsLeapYear( nYear ) ) in DaysInMonth()
173 sal_Int32 DateToDays( sal_uInt16 nDay, sal_uInt16 nMonth, sal_uInt16 nYear ) in DateToDays() argument
175 sal_Int32 nDays = ((sal_Int32)nYear-1) * 365; in DateToDays()
176 nDays += ((nYear-1) / 4) - ((nYear-1) / 100) + ((nYear-1) / 400); in DateToDays()
179 nDays += DaysInMonth(i,nYear); in DateToDays()
2814 nYear( 1900 ), in ScaDate()
2824 DaysToDate( nNullDate + nDate, nOrigDay, nMonth, nYear ); in ScaDate()
2826 bLastDay = (nOrigDay >= ::DaysInMonth( nMonth, nYear )); in ScaDate()
2836 nYear( rCopy.nYear ), in ScaDate()
[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
1058 if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND ) in scanDateFormatImpl()
1066 nYear = rCode.Search( 'V' ); in scanDateFormatImpl()
1075 nYear = rCode.Search( 'J' ); in scanDateFormatImpl()
1078 nYear = rCode.Search( 'A' ); // French, Italian in scanDateFormatImpl()
1079 if ( nYear != STRING_NOTFOUND ) in scanDateFormatImpl()
1091 nYear = rCode.Search( 'A' ); // Spanish in scanDateFormatImpl()
1092 if ( nYear == STRING_NOTFOUND ) in scanDateFormatImpl()
1093 nYear = rCode.Search( 'J' ); // Dutch in scanDateFormatImpl()
1095 if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND ) in scanDateFormatImpl()
[all …]
/trunk/main/vcl/source/control/
H A Dfield2.cxx1212 sal_uInt16 nYear = 0; in ImplDateGetValue() local
1225 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1230 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1234 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1251 nYear = Date().GetYear(); in ImplDateGetValue()
1267 nYear = ImplGetNum( pBuf, bError ); in ImplDateGetValue()
1278 nYear = ImplGetNum( pBuf, bError ); in ImplDateGetValue()
1287 nYear = ImplGetNum( pBuf, bError ); in ImplDateGetValue()
1305 Date aNewDate( nDay, nMonth, nYear ); in ImplDateGetValue()
1374 sal_uInt16 nYear = rDate.GetYear(); in ImplGetDateAsText() local
[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()
1406 bSuccess &= (0 < nDay) && (nDay <= lcl_MaxDaysPerMonth(nMonth, nYear)); in convertDateOrDateTime()
1498 lcl_addDay(bNegative, nYear, nMonth, nDay, 1); 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.cxx66 double ScInterpreter::GetDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bStric… in GetDateSerial() argument
69 if ( nYear < 100 && !bStrict ) in GetDateSerial()
70 nYear = pFormatter->ExpandTwoDigitYear( nYear ); in GetDateSerial()
75 nY = nYear, nM = nMonth, nD = nDay; in GetDateSerial()
80 nY = nYear + (nMonth-1) / 12; in GetDateSerial()
85 nY = nYear + (nMonth-12) / 12; in GetDateSerial()
245 sal_Int16 nDay, nMonth, nYear; in ScEasterSunday() local
246 nYear = (sal_Int16) ::rtl::math::approxFloor( GetDouble() ); in ScEasterSunday()
247 if ( nYear < 100 ) in ScEasterSunday()
248 nYear = pFormatter->ExpandTwoDigitYear( nYear ); in ScEasterSunday()
[all …]
/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/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/basic/source/runtime/
H A Dmethods1.cxx1988 sal_Bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, double& rdRet );
2048 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()
[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()
829 if ( mpSelectTable->IsKeyValid( Date( nDay, nMonth, nYear ).GetDate() ) ) in ImplDrawDate()
836 pDateInfo = mpDateTable->Get( Date( nDay, nMonth, nYear ).GetDate() ); 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()
[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 );

123