| /trunk/main/i18npool/source/calendar/ |
| H A D | calendar_jewish.cxx | 61 sal_Bool HebrewLeapYear(sal_Int32 year) { in HebrewLeapYear() argument 62 return ((((7 * year) + 1) % 19) < 7); in HebrewLeapYear() 66 sal_Int32 LastMonthOfHebrewYear(sal_Int32 year) { in LastMonthOfHebrewYear() argument 67 return (HebrewLeapYear(year)) ? 13 : 12; in LastMonthOfHebrewYear() 72 sal_Int32 HebrewCalendarElapsedDays(sal_Int32 year) { in HebrewCalendarElapsedDays() argument 74 (235 * ((year - 1) / 19)) // Months in complete cycles so far. in HebrewCalendarElapsedDays() 75 + (12 * ((year - 1) % 19)) // Regular months in this cycle. in HebrewCalendarElapsedDays() 76 + (7 * ((year - 1) % 19) + 1) / 19; // Leap months this cycle in HebrewCalendarElapsedDays() 88 && !(HebrewLeapYear(year))) // ...of a common year, in HebrewCalendarElapsedDays() 91 && (HebrewLeapYear(year - 1))))// at the end of a leap year in HebrewCalendarElapsedDays() [all …]
|
| H A D | calendar_hijri.cxx | 80 sal_Int32 year = (sal_Int32)fieldSetValue[CalendarFieldIndex::YEAR]; in mapToGregorian() local 82 year *= -1; in mapToGregorian() 84 ToGregorian(&day, &month, &year); in mapToGregorian() 86 fieldSetValue[CalendarFieldIndex::ERA] = year <= 0 ? 0 : 1; in mapToGregorian() 89 fieldSetValue[CalendarFieldIndex::YEAR] = (sal_Int16) abs(year); in mapToGregorian() 97 sal_Int32 month, day, year; in mapFromGregorian() local 101 year = (sal_Int32)fieldValue[CalendarFieldIndex::YEAR]; in mapFromGregorian() 103 year *= -1; in mapFromGregorian() 106 getHijri(&day, &month, &year); in mapFromGregorian() 110 fieldValue[CalendarFieldIndex::YEAR] = (sal_Int16) abs(year); in mapFromGregorian() [all …]
|
| H A D | calendar_gregorian.cxx | 330 for (e = 0; eraArray[e].year; e++) in mapFromGregorian() 331 if ((y != eraArray[e].year) ? y < eraArray[e].year : in mapFromGregorian() 337 …sal::static_int_cast<sal_Int16>( (e == 0) ? (eraArray[0].year - y) : (y - eraArray[e-1].year + 1) … in mapFromGregorian() 349 … y = sal::static_int_cast<sal_Int16>( eraArray[0].year - fieldValue[CalendarFieldIndex::YEAR] ); in mapToGregorian() 351 …y = sal::static_int_cast<sal_Int16>( eraArray[e-1].year + fieldValue[CalendarFieldIndex::YEAR] - 1… in mapToGregorian()
|
| /trunk/main/helpcontent2/helpers/ |
| H A D | createmakefile.pl | 128 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); 131 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 183 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 212 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 241 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 268 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 304 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 334 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 361 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; 388 $date = sprintf "%4d/%02d/%02d %02d:%02d:%02d",$year+1900,$mon,$mday,$hour,$min,$sec; [all …]
|
| /trunk/main/ucb/source/ucp/webdav/ |
| H A D | DateTimeHelper.cxx | 42 int year, month, day, hours, minutes, off_hours, off_minutes, fix; in ISO8601_To_DateTime() local 47 &year, &month, &day, &hours, &minutes, &seconds ); in ISO8601_To_DateTime() 56 &year, &month, &day, &hours, &minutes, &seconds, in ISO8601_To_DateTime() 66 &year, &month, &day, &hours, &minutes, &seconds, in ISO8601_To_DateTime() 89 aDateTime.Year = sal::static_int_cast< sal_uInt16 >(year); in ISO8601_To_DateTime() 170 int year; in RFC2068_To_DateTime() local 185 string_day, &day, string_month, &year, &hours, &minutes, &seconds); in RFC2068_To_DateTime() 190 string_day, &day, string_month, &year, &hours, &minutes, &seconds); in RFC2068_To_DateTime() 201 &day, &hours, &minutes, &seconds, &year); in RFC2068_To_DateTime() 228 aDateTime.Year = sal::static_int_cast< sal_uInt16 >(year); in RFC2068_To_DateTime()
|
| /trunk/main/autodoc/source/cosv/service/ |
| H A D | comfunc.cxx | 86 date2str(String & out_Str, int day, int month, int year) in date2str() argument 94 if (year < 100) in date2str() 96 buf[6] = static_cast<char>(year/10 + '0'); in date2str() 97 buf[7] = static_cast<char>(year%10 + '0'); in date2str() 102 buf[6] = static_cast<char>(year/1000 + '0'); in date2str() 103 buf[7] = static_cast<char>(year%1000/100 + '0'); in date2str() 104 buf[8] = static_cast<char>(year%100/10 + '0'); in date2str() 105 buf[9] = static_cast<char>(year%10 + '0'); in date2str()
|
| /trunk/main/sc/addin/datefunc/ |
| H A D | dfa.cl | 84 * Check if a year is a leap year in the Gregorian calendar 86 * @param nYear the year which should be checked 87 * @return true if the year is a leap year, false otherwise. 103 * @param nYear the year 162 * @param *pYear pointer to a variable for the year 215 * The second calculates the difference by week of year. 220 * A week that lies partly in one year and partly in another 221 * is assigned a number in the year in which most of its days lie. 223 * That means that week 1 of any year is the week that contains the 4. January 234 * calculates a number between 0-53 for each day which is in the same year as nJan4 [all …]
|
| H A D | dfa.src | 139 Text = "Returns 1 (TRUE) if a leap year is used, otherwise 0 (FALSE) is returned"; 161 Text = "Returns the number of days in a year in relation to the date entered"; 172 Text = "Returns the number of weeks in the year in relation to a date";
|
| /trunk/main/xmerge/source/minicalc/java/org/openoffice/xmerge/converter/xml/sxc/minicalc/ |
| H A D | MinicalcDataString.java | 443 int year = yearInt.intValue(); in convertToStarDate() local 445 if (year < 31) { in convertToStarDate() 449 year += 2000; in convertToStarDate() 451 } else if (year < 100) { in convertToStarDate() 455 year += 1900; in convertToStarDate() 458 yearString = Integer.toString(year); in convertToStarDate()
|
| /trunk/main/offapi/com/sun/star/i18n/ |
| H A D | CalendarDisplayCode.idl | 39 strings, for example not a four digit year but a CJK name instead. 55 /// Month of year, one or two digits, no leading zero. 57 /// Month of year, with leading zero. 72 /// Combined short year and era, order depends on locale/calendar. 74 /// Combined full year and era, order depends on locale/calendar.
|
| H A D | XExtendedCalendar.idl | 57 how many digits that will have. For example, a short year 68 if specified for the year representation. However, depending 69 on the locale, different conversions for year and month, for
|
| H A D | CalendarFieldIndex.idl | 59 /// Get day of year. 78 /// Get week of year. 80 /// Get/Set year.
|
| H A D | XCalendar.idl | 140 year. 146 a year. 151 /// returns the number of months in a year, e.g. <b>12</b>
|
| /trunk/main/offapi/com/sun/star/sheet/ |
| H A D | DataPilotFieldGroupBy.idl | 80 members that contain the january 3rd, regardless of the year or time 99 date in the month january, regardless of the year, day, or time of the 110 date in the first quarter of a year (i.e. the months january, 111 february, and march), regardless of the year, day, or time of the 119 by their year. 122 date in the year 1999, regardless of the month, day, or time of the
|
| /trunk/main/scaddins/source/datefunc/ |
| H A D | datefunc.src | 126 … Text [ en-US ] = "Returns 1 (TRUE) if the date is a day of a leap year, otherwise 0 (FALSE)." ; 134 Text [ en-US ] = "Any day in the desired year" ; 158 … Text [ en-US ] = "Returns the number of days of the year in which the date entered occurs." ; 166 Text [ en-US ] = "Any day in the desired year" ; 174 … Text [ en-US ] = "Returns the number of weeks of the year in which the date entered occurs" ; 182 Text [ en-US ] = "Any day in the desired year" ;
|
| H A D | dateadd.idl | 68 /// checks if a date is in a leap year. 80 /// calculates the number of days in a year. 86 /// calculates the number of weeks in a year.
|
| /trunk/main/solenv/bin/modules/installer/ |
| H A D | logger.pm | 645 my $year = $timearray[5] - 100; 647 if ( $year < 10 ) { $year = "0" . $year; } 651 $datestring = $year . $month . $day;
|
| /trunk/main/ucb/source/ucp/ftp/ |
| H A D | ftpdirp.hxx | 54 const sal_uInt16& year) SAL_THROW( () ) in DateTime() 61 year) { } in DateTime() 63 void SetYear(sal_uInt16 year) { Year = year; } in SetYear()
|
| /trunk/main/offapi/com/sun/star/util/ |
| H A D | DateTimeRange.idl | 62 /** contains the start month of year (1-12 or 0 for a void date) for the range. 67 /** contains the start year for the range. 97 /** contains the end month of year (1-12 or 0 for a void date) for the range. 102 /** contains the end year for the range.
|
| H A D | Date.idl | 43 /** contains the month of year (1-12 or 0 for a void date). 49 /** contains the year.
|
| /trunk/main/i18npool/inc/ |
| H A D | calendar_hijri.hxx | 72 void getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year); 73 void ToGregorian(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year); 75 double getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year);
|
| /trunk/main/sal/qa/helper/gcov/ |
| H A D | gcov_result.pl | 167 my $year = localtime->year() + 1900; 170 $sURL = $sURL . "$next" . "date=$year-$month-$day";
|
| /trunk/main/icc/ |
| H A D | SampleICC-1.3.2.patch | 1874 - sprintf(buf, "%u-%u-%u\r\n", m_DateTime.month, m_DateTime.day, m_DateTime.year); 1875 + sprintf(buf, "%u-%u-%u\n", m_DateTime.month, m_DateTime.day, m_DateTime.year); 3008 if (dateTime.year<1992) { 3010 - sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); 3011 + sprintf(buf," - %u: Invalid year!\n",dateTime.year); 3017 if (dateTime.year>(year+1)) { 3019 - sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); 3020 + sprintf(buf," - %u: Invalid year!\n",dateTime.year); 3026 if (dateTime.year>year) { 3028 - sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); [all …]
|
| /trunk/main/unixODBC/inc/ |
| H A D | sqltypes.h | 249 SQLSMALLINT year; member 275 SQLSMALLINT year; member 317 SQLUINTEGER year; member
|
| /trunk/main/xmerge/java/pexcel/src/main/java/org/openoffice/xmerge/converter/xml/sxc/pexcel/records/ |
| H A D | Formula.java | 220 int year = Integer.parseInt(s.substring(0,4)); in toExcelSerialDate() local 224 long serialDate = (1461 * (year + 4800 + (month - 14) / 12)) / 4 + in toExcelSerialDate() 226 (3 * ((year + 4900 + (month - 14) / 12)) / 100) / 4 + in toExcelSerialDate()
|