Lines Matching full:year
106 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian)
151 * Return TRUE if the given year is a leap year.
152 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
153 * @return TRUE if the year is a leap year
155 static inline UBool isLeapYear(int32_t year);
159 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
163 static inline int8_t monthLength(int32_t year, int32_t month);
167 * @param y the extended year
174 * Convert a year, month, and day-of-month, given in the proleptic
176 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
181 static double fieldsToDay(int32_t year, int32_t month, int32_t dom);
184 * Convert a 1970-epoch day number to proleptic Gregorian year,
187 * @param year output parameter to receive year
191 * @param doy output parameter to receive day-of-year (1-based)
193 static void dayToFields(double day, int32_t& year, int32_t& month,
197 * Convert a 1970-epoch day number to proleptic Gregorian year,
200 * @param year output parameter to receive year
205 static inline void dayToFields(double day, int32_t& year, int32_t& month,
209 * Convert a 1970-epoch milliseconds to proleptic Gregorian year,
210 * month, day-of-month, and day-of-week, day of year and millis-in-day.
212 * @param year output parameter to receive year
216 * @param doy output parameter to receive day-of-year (1-based)
219 static void timeToFields(UDate time, int32_t& year, int32_t& month,
232 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
237 static int32_t dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom);
256 * Calculates the Gregorian day shift value for an extended year.
257 * @param eyear Extended year
271 inline UBool Grego::isLeapYear(int32_t year) { in isLeapYear() argument
272 // year&0x3 == year%4 in isLeapYear()
273 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear()
277 Grego::monthLength(int32_t year, int32_t month) { in monthLength() argument
278 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength()
286 inline void Grego::dayToFields(double day, int32_t& year, int32_t& month, in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()