Lines Matching refs:year
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()
111 fieldValue[CalendarFieldIndex::ERA] = (sal_Int16) year < 1 ? 0 : 1; in mapFromGregorian()
179 Calendar_hijri::getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year) in getHijri() argument
190 julday = getJulianDay(*day, *month, *year); in getHijri()
215 *year = GregRef + (sal_Int32)(syndiff / 12); in getHijri()
220 (*year)--; in getHijri()
224 if (*year <= 0) (*year)--; in getHijri()
228 Calendar_hijri::ToGregorian(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year) in ToGregorian() argument
235 if ( *year < 0 ) (*year)++; in ToGregorian()
238 nmonth = *month + *year * 12 - (GregRef * 12 + 1); in ToGregorian()
250 getGregorianDay((sal_Int32)jday, day, month, year); in ToGregorian()
253 if ( *year <= 0 ) { in ToGregorian()
256 *year = -1; in ToGregorian()
305 Calendar_hijri::getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year) in getJulianDay() argument
309 if( year == 0 ) { in getJulianDay()
313 if( year == 1582 && month == 10 && day > 4 && day < 15 ) { in getJulianDay()
318 jy = year; in getJulianDay()
321 jy = year - 1; in getJulianDay()
330 if( day + 31 * (month + 12 * year) >= gregcal ) { in getJulianDay()